-
Notifications
You must be signed in to change notification settings - Fork 430
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
LifecycleNode shutdown on dtor only with valid context. #2545
Merged
Conversation
This file contains 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
Signed-off-by: Tomoya Fujita <[email protected]>
@mjcarroll @clalancette can you take a look at this? |
fujitatomoya
commented
May 30, 2024
This was referenced May 30, 2024
mjcarroll
approved these changes
May 30, 2024
CI is green, i will go ahead to merge this. |
delete-merged-branch
bot
deleted the
fujitatomoya/lc-node-shutdown-dtor-fix
branch
May 30, 2024 21:57
fujitatomoya
added a commit
that referenced
this pull request
May 30, 2024
Signed-off-by: Tomoya Fujita <[email protected]>
fujitatomoya
added a commit
that referenced
this pull request
May 30, 2024
Signed-off-by: Tomoya Fujita <[email protected]>
fujitatomoya
added a commit
that referenced
this pull request
May 30, 2024
Signed-off-by: Tomoya Fujita <[email protected]>
fujitatomoya
added a commit
that referenced
this pull request
May 30, 2024
Signed-off-by: Tomoya Fujita <[email protected]>
fujitatomoya
added a commit
that referenced
this pull request
Jun 6, 2024
…2544) * lifecycle node dtor shutdown should be called only in primary state. Signed-off-by: Tomoya Fujita <[email protected]> * LifecycleNode shutdown on dtor only with valid context. (#2545) Signed-off-by: Tomoya Fujita <[email protected]> --------- Signed-off-by: Tomoya Fujita <[email protected]>
fujitatomoya
added a commit
that referenced
this pull request
Jun 6, 2024
…2543) * lifecycle node dtor shutdown should be called only in primary state. Signed-off-by: Tomoya Fujita <[email protected]> * LifecycleNode shutdown on dtor only with valid context. (#2545) Signed-off-by: Tomoya Fujita <[email protected]> --------- Signed-off-by: Tomoya Fujita <[email protected]>
fujitatomoya
added a commit
that referenced
this pull request
Jun 7, 2024
…known state (2nd) (backport #2528) (#2542) * call shutdown in LifecycleNode dtor to avoid leaving the device in unknown state (2nd) (#2528) * Revert "Revert "call shutdown in LifecycleNode dtor to avoid leaving the device in un… (#2450)" (#2522)" This reverts commit 42b0b57. Signed-off-by: Tomoya Fujita <[email protected]> * lifecycle node dtor shutdown should be called only in primary state. Signed-off-by: Tomoya Fujita <[email protected]> * adjust warning message if the node is still in transition state in dtor. Signed-off-by: Tomoya Fujita <[email protected]> --------- Signed-off-by: Tomoya Fujita <[email protected]> (cherry picked from commit 3bc364a) * LifecycleNode shutdown on dtor only with valid context. (#2545) Signed-off-by: Tomoya Fujita <[email protected]> --------- Signed-off-by: Tomoya Fujita <[email protected]> Co-authored-by: Tomoya Fujita <[email protected]>
fujitatomoya
added a commit
that referenced
this pull request
Jun 10, 2024
This reverts commit d8d83a0. Signed-off-by: Tomoya Fujita <[email protected]>
fujitatomoya
added a commit
that referenced
this pull request
Jun 11, 2024
* Revert "LifecycleNode shutdown on dtor only with valid context. (#2545)" This reverts commit d8d83a0. Signed-off-by: Tomoya Fujita <[email protected]> * Revert "call shutdown in LifecycleNode dtor to avoid leaving the device in unknown state (2nd) (#2528)" This reverts commit 3bc364a. Signed-off-by: Tomoya Fujita <[email protected]> --------- Signed-off-by: Tomoya Fujita <[email protected]>
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.
#2528 generates the following error when the context is gracefully shutdown. (e.g deferred signal handler of rclcpp.)
this is because the shutdown in the dtor is called but failed to publish the transition since the context is not valid.
i thought of a couple of things, but at this moment, i would like to label it with
TODO
.shutdown
without publishing the transition. lifecycnode itself needs to be shutdown to avoid leaving the device or sensor in unknown state. we can call this method when the context is invalid.This also addresses #2547 (Nav2 CI finds this behavior)