Conversation
Release ownership only after storage removal succeeds, keeping shared pointers valid for the state update. Cover failed non-owner removal and successful reuse for all affected entity and subscription-part paths. Fixes ros2#3293. Generated-by: OpenAI Codex (GPT-6). Signed-off-by: Miko Parkkinen <Miko.parkkinen99@gmail.com>
jmachowinski
approved these changes
Oct 2, 2026
fujitatomoya
approved these changes
Oct 4, 2026
Collaborator
|
Pulls: #3294 |
ABI Compliance Check❌ Verdict: incompatible
✅
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Clear wait-set ownership only after storage removal succeeds, retaining shared pointers for the ownership update. Regression coverage exercises the same defect in guard-condition, timer, client, service, waitable and subscription-part removal.
Fixes #3293.
Is this user-facing behavior change?
Failed removal from a non-owner preserves ownership, so another wait set still rejects the entity. Successful removal by the owner permits reuse.
Did you use Generative AI?
Generated-by: OpenAI Codex (GPT-6).
The implementation, regression tests and PR text were generated with AI assistance.
Additional Information
Local validation on Ubuntu 26.04 x86_64, Rolling,
rmw_fastrtps_cpp, using the rebuilt checkout:eee4b508and pass with the fix.test_wait_set,test_dynamic_storage,test_static_storage,test_storage_policy_commonandtest_thread_safe_synchronizationpass.git diff --checkpasses.Tier-1 CI remains a maintainer-run gate.