Skip to content

call shutdown in LifecycleNode dtor to avoid leaving the device in un… (backport #2450)#2491

Merged
fujitatomoya merged 1 commit intohumblefrom
mergify/bp/humble/pr-2450
Apr 7, 2024
Merged

call shutdown in LifecycleNode dtor to avoid leaving the device in un… (backport #2450)#2491
fujitatomoya merged 1 commit intohumblefrom
mergify/bp/humble/pr-2450

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Apr 6, 2024

…known state.

address #997


This is an automatic backport of pull request #2450 done by Mergify.

#2450)

* call shutdown in LifecycleNode dtor to avoid leaving the device in unknown state.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* add test to verify LifecycleNode::shutdown is called on destructor.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 04ea0bb)
@fujitatomoya
Copy link
Copy Markdown
Collaborator

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@fujitatomoya
Copy link
Copy Markdown
Collaborator

https://ci.ros2.org/job/ci_windows/21456/ is unrelated, merging.

@fujitatomoya fujitatomoya merged commit 0f9604d into humble Apr 7, 2024
@delete-merged-branch delete-merged-branch bot deleted the mergify/bp/humble/pr-2450 branch April 7, 2024 21:59
fujitatomoya added a commit that referenced this pull request Jun 10, 2024
…ce in un… (#2450) (#2491)"

This reverts commit 0f9604d.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
fujitatomoya added a commit that referenced this pull request Jun 12, 2024
* Revert "lifecycle node dtor shutdown should be called only in primary state. (#2544)"

This reverts commit 595badb.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* Revert "call shutdown in LifecycleNode dtor to avoid leaving the device in un… (#2450) (#2491)"

This reverts commit 0f9604d.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant