Fix: don't abort metadata push on closed metadata
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 19 Jan 2017 00:23:09 +0000 (19:23 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 20 Jan 2017 20:26:04 +0000 (15:26 -0500)
commitcddba51aa1722ec7592251321277085e9af3f5a0
tree0cf4b109b5d2781558791144440dcc80a3af9b1b
parent4545eae3bccb0f5a97509d1405a28000029a8d7d
Fix: don't abort metadata push on closed metadata

The failure/exit of any of the consumerd, relayd or applications
(in per-PID buffer mode) will cause the metadata closed flag to
be set.

While pushing new metadata updates to the consumerd (and relayd
in streaming/live scenarios) will fail, those conditions should
be handled in-place.

Applications are _expected_ to exit during the course of a per-PID
session. However, they will typically have pushed their metadata
to the metadata cache before doing so. The session daemon must
flush the unconsumed metadata to the consumerd in this case.

Failure to answer to the metadata request originating from the
consumerd can cause it to keep the stream lock held and, thus,
prevent the channel poll thread from cleaning up on channel
close.

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