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: Resolve race condition in MoveGroupSequenceAction #3125

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

maxwelllls
Copy link
Contributor

Description

Replaced ReentrantCallbackGroup with MutuallyExclusiveCallbackGroup in MoveGroupSequenceAction::initialize to prevent race conditions during stress testing.

This change ensures sequential execution of callbacks, avoiding issues caused by concurrent execution.

Reference: #3117

Checklist

  • Required by CI: Code is auto formatted using clang-format
  • Extend the tutorials / documentation reference
  • Document API changes relevant to the user in the MIGRATION.md notes
  • Create tests, which fail without this PR reference
  • Include a screenshot if changing a GUI
  • While waiting for someone to review your request, please help review another open pull request to support the maintainers

Replaced `ReentrantCallbackGroup` with `MutuallyExclusiveCallbackGroup` in
`MoveGroupSequenceAction::initialize` to prevent race conditions during stress testing.

This change ensures sequential execution of callbacks, avoiding issues
caused by concurrent execution.

Reference: moveit#3117
@maxwelllls
Copy link
Contributor Author

@sea-bass

Copy link
Contributor

@sea-bass sea-bass left a comment

Choose a reason for hiding this comment

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

Thank you! Will see if all the tests pass and merge/backport to Humble if it looks good.

@codecov-commenter
Copy link

codecov-commenter commented Nov 22, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.44%. Comparing base (d962501) to head (9da70e4).
Report is 153 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3125      +/-   ##
==========================================
- Coverage   50.74%   45.44%   -5.30%     
==========================================
  Files         392      482      +90     
  Lines       32553    40431    +7878     
==========================================
+ Hits        16517    18370    +1853     
- Misses      16036    22061    +6025     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@sea-bass sea-bass added the backport-humble Mergify label that triggers a PR backport to Humble label Nov 22, 2024
@sea-bass
Copy link
Contributor

I don't know what started causing these humble-ci failures, but it's not unique to this PR

Copy link
Contributor

@stephanie-eng stephanie-eng left a comment

Choose a reason for hiding this comment

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

Thanks! Appreciate the comment as well 🙂

@sea-bass sea-bass merged commit 6d94dfb into moveit:main Nov 22, 2024
10 of 11 checks passed
mergify bot pushed a commit that referenced this pull request Nov 22, 2024
(cherry picked from commit 6d94dfb)

# Conflicts:
#	moveit_planners/pilz_industrial_motion_planner/src/move_group_sequence_action.cpp
@sea-bass
Copy link
Contributor

Humble backport is in #3127, and CI seems to be passing there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-humble Mergify label that triggers a PR backport to Humble
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants