]> git.lttng.org Git - lttng-tools.git/commit
tests: Ignore notification type mismatches in `test_notification_ust_buffer_usage`
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 13 Feb 2025 19:54:35 +0000 (14:54 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 21 Feb 2025 19:13:07 +0000 (19:13 +0000)
commit897eb8fc1fd853bbd4edf7a93116a871e959b61d
tree71f6afd93e03e213ad1d0b3567473f5ac055fc0e
parentc15899b0e6b17ed3af8d36335810dbbd1b7a5176
tests: Ignore notification type mismatches in `test_notification_ust_buffer_usage`

Observed Issue
==============

Frequent aborts in the CI on this test.

Cause
=====

The notification queue can be racy with regards the clients and
consumers being stopped and started as they are in this test. The
conditions for notifications are evaluated during each iteration of
the monitor thread, by default every ~ 1000000 us.

This means that in the moments between commands more than one
notification can be registered as the states of the buffers are
assessed.

Solution
========

Ignore notification with types that don't match the expected
notification type.

Known drawbacks
===============

None.

Change-Id: I62c269a218a473b53dc11809b99b7c45b0a9887a
Tested-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/ctl/format.hpp
src/common/ctl/memory.hpp
tests/regression/tools/notification/Makefile.am
tests/regression/tools/notification/notification.cpp
This page took 0.03048 seconds and 4 git commands to generate.