Fix: sessiond: don't wait for a rotation from a null chunk to finish
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 20 Nov 2019 21:09:50 +0000 (16:09 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 20 Nov 2019 21:16:30 +0000 (16:16 -0500)
commit3b61d9ee2a0611e980fb2817d6dd5fa3c9c7be68
tree37fc49339ffa7abe0d2a130faa36e052b0f5359d
parent8c9211169fda5c183b0cf1f94c01721fdb5ccba5
Fix: sessiond: don't wait for a rotation from a null chunk to finish

The rotation completion checking does not handle waiting for the
completion of a rotation _from_ a NULL trace chunk. This is correct as
there is essentially nothing to check. Streams always rotate out of a
null trace chunk immediately as it means the stream had no output and
could not receive data.

Concretely, this happens when stopping a session, rotating, and
re-starting a session.

The fix consists in simply re-working the logic of the "rotate"
command to not launch a rotation completion check job and not put the
session in the "rotation ongoing" state.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c
This page took 0.024871 seconds and 4 git commands to generate.