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>
Fri, 22 Nov 2019 21:22:14 +0000 (16:22 -0500)
commite60b91893a23150ce4d558799182b4487e77fda3
tree2ac31d08f50232aa06063d134b65341afc89cd38
parent2c037835324f1c53e96fb207da3737ba9a969e21
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.025426 seconds and 4 git commands to generate.