Fix: session conditions not evaluated at subscription/registration
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 5 Oct 2018 15:55:39 +0000 (11:55 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 12 Oct 2018 16:20:31 +0000 (12:20 -0400)
commit12465b0ef8aa21c59e883af3dd9739d8d6be074d
treed42603e06fdf19290d30769bc4f3029c322245b5
parentd12522c8f767df18a4fa4af0df379e09aea26e6f
Fix: session conditions not evaluated at subscription/registration

Conditions bound to sessions (session rotation ongoing/completed)
are not automatically evaluated when a notification channel client
subscribes to them or when a client is subscribed _before_ the
trigger is created.

The problematic scenario is:

- Trigger is registered to notify on session rotation ongoing for
  session 'foo',
- A rotation is launched on session foo (but not completed)
- A client subscribes to 'session rotation ongoing' notifications for
  session 'foo'

In this scenario, the client would not be notified of the 'current'
state of the session.

Whether or not a client is notified of the 'current' state at the
time of subscription/registration is defined per-condition. In
the case of 'session rotation ongoing', it is desirable for clients
to be notified that the rotation is ongoing at the time of their
subscription/registration.

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