Implement the RELAYD_ROTATE_PENDING relay daemon command
authorJulien Desfossez <jdesfossez@efficios.com>
Thu, 14 Dec 2017 16:00:30 +0000 (11:00 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 14 Mar 2018 01:12:33 +0000 (21:12 -0400)
commite2acc8d25bc0073554a2f3e742e070b7034ec1d0
tree4cdbc74360f3e70307b7d71be9a4eacdbade0e1c
parentd3ecc5503007bc81faa8049fac945f163b6356f3
Implement the RELAYD_ROTATE_PENDING relay daemon command

This command allows the sessiond to check if a rotation is complete
from the relayd point of view. There can be a significant delay
between the time the consumer has finished extracting the data from
the buffers and the time the relay has finished writing them on disk,
and we can only inform the user that the rotation is complete when all
the data is on disk. So the RELAYD_ROTATE_PENDING command is used to
poll the relayd after the consumer has finished extracting the data
until everything is on the relayd disk.

This command also takes care of streams that did not exist on the
consumer when the rotation started, or streams that appeared after the
last rotation started. The chunk_id field is used to distinguish those
cases.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/main.c
src/common/sessiond-comm/relayd.h
src/common/sessiond-comm/sessiond-comm.h
This page took 0.026345 seconds and 4 git commands to generate.