Fix: sessiond: rotation thread: fatal error when not finding a session
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 9 Dec 2021 21:27:29 +0000 (16:27 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 25 Jan 2022 22:54:49 +0000 (17:54 -0500)
commitc19ea82db9e8afbfb4bb52e1cb15630863b3cf74
tree5f5e13791ebf7a0d6e094bc21a4ec94819abb8a9
parent84a85e3c23cd28fd2a6dc3f1b6ff29ea4b58ba32
Fix: sessiond: rotation thread: fatal error when not finding a session

The rotation thread implements scheduled rotations (by size) by
registering a trigger that monitors the session's consumed size and
notifies when the next rotation's size threshold is exceeded.

The notification is delivered asynchronously which doesn't prevent
the session from being destroyed before the rotation thread has
had the time to process the notification (and perform a rotation).

Since it is possible for a session to be destroyed by the time the
notification is processed, the rotation thread shouldn't handle
this eventuality as a fatal error (shutting down the thread).

Note that nobody reported this issue nor did I attempt to reproduce it.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I588054bad3542854851f28d34f2c758bdf420a34
src/bin/lttng-sessiond/rotation-thread.c
This page took 0.026397 seconds and 5 git commands to generate.