Skip to content

fix race in test_lifecycle_service_client - #1204

Merged
dirk-thomas merged 1 commit into
masterfrom
dirk-thomas/fix-race-in-test
Jun 26, 2020
Merged

dirk-thomas merged 1 commit into
masterfrom
dirk-thomas/fix-race-in-test

Conversation

@dirk-thomas

Copy link
Copy Markdown
Member

Fixes a race between one thread spinning and calling rclcpp::shutdown() from another thread by making the critical sections mutually exclusive.

The test has been failing since the first nightly build (https://ci.ros2.org/view/nightly/job/nightly_osx_repeated/1939/testReport/(root)/projectroot/test_lifecycle_service_client/) after being added in #1045.

Before: Build Status
After: Build Status

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
@dirk-thomas dirk-thomas added the bug Something isn't working label Jun 26, 2020
@dirk-thomas dirk-thomas self-assigned this Jun 26, 2020

@brawner brawner left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Dirk for addressing this issue.

@dirk-thomas
dirk-thomas merged commit 873a3d5 into master Jun 26, 2020
@delete-merged-branch
delete-merged-branch Bot deleted the dirk-thomas/fix-race-in-test branch June 26, 2020 23:00
DensoADAS pushed a commit to DensoADAS/rclcpp that referenced this pull request Jul 7, 2020
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
ahcorde pushed a commit that referenced this pull request Nov 3, 2020
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
ahcorde pushed a commit that referenced this pull request Nov 3, 2020
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
bartalor pushed a commit to bartalor/rclcpp that referenced this pull request Jul 15, 2026
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
Tanay10x pushed a commit to TanayK07/ros2_pulse that referenced this pull request Aug 23, 2026
#1204 was an internal monorepo tracker, not a ros2/rclcpp ref -- the public
ros2/rclcpp#1204 is an unreleated lifecycle-service-client test race, so it
reads as a dead link. Inline the description (the earlier global-mutex +
per-message string-hash stats prototype) in the interposers.cpp comment and
in bench/RESULTS.md. Comment-only change in interposers.cpp; no logic touched.
Tanay10x pushed a commit to TanayK07/ros2_pulse that referenced this pull request Aug 23, 2026
#1204 was an internal monorepo tracker, not a ros2/rclcpp ref -- the public
ros2/rclcpp#1204 is an unreleated lifecycle-service-client test race, so it
reads as a dead link. Inline the description (the earlier global-mutex +
per-message string-hash stats prototype) in the interposers.cpp comment and
in bench/RESULTS.md. Comment-only change in interposers.cpp; no logic touched.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants