Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix race in test_lifecycle_service_client #1204

Merged
merged 1 commit into from
Jun 26, 2020

Conversation

dirk-thomas
Copy link
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
Copy link
Contributor

@brawner brawner left a comment

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>
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