Skip to content

clear node/context handle on RclJava.cleanup()#130

Merged
esteve merged 2 commits into
ros2-java:dashingfrom
sung-goo-kim:dev/clear-handle
Sep 30, 2020
Merged

clear node/context handle on RclJava.cleanup()#130
esteve merged 2 commits into
ros2-java:dashingfrom
sung-goo-kim:dev/clear-handle

Conversation

@sung-goo-kim

@sung-goo-kim sung-goo-kim commented Sep 11, 2020

Copy link
Copy Markdown
Contributor

node and context handle should remove from list(LinkedBlockingQueue) when after dispose() called.

If RCLJava.cleanup() called multiple times without terminating the program, unexpected problems may occur due to uncleared nodes.

@esteve

esteve commented Sep 16, 2020

Copy link
Copy Markdown
Member

@sung-goo-kim thanks! It looks like services, subscriptions and publishers should be cleared as well, what do you think? Thanks again.

@sung-goo-kim

Copy link
Copy Markdown
Contributor Author

@sung-goo-kim thanks! It looks like services, subscriptions and publishers should be cleared as well, what do you think? Thanks again.

@esteve thanks for comment. I added commit to clear publishers, subscribers, clients, services and timers when disposing node.

@jacobperron jacobperron left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@esteve

esteve commented Sep 30, 2020

Copy link
Copy Markdown
Member

@sung-goo-kim thanks and sorry it took so long to merge this change

@esteve esteve merged commit 0b48353 into ros2-java:dashing Sep 30, 2020
@sung-goo-kim sung-goo-kim deleted the dev/clear-handle branch October 5, 2020 02:50
jacobperron pushed a commit to osrf/ros2_java that referenced this pull request Nov 9, 2020
* clear node/context handle on RclJava.cleanup()

* clear publishers, subscriptions, clients, services and timers on Node.dispose()
jacobperron pushed a commit to osrf/ros2_java that referenced this pull request Nov 10, 2020
* clear node/context handle on RclJava.cleanup()

* clear publishers, subscriptions, clients, services and timers on Node.dispose()
jacobperron pushed a commit to osrf/ros2_java that referenced this pull request Nov 10, 2020
* clear node/context handle on RclJava.cleanup()

* clear publishers, subscriptions, clients, services and timers on Node.dispose()
jacobperron pushed a commit to osrf/ros2_java that referenced this pull request Nov 10, 2020
* clear node/context handle on RclJava.cleanup()

* clear publishers, subscriptions, clients, services and timers on Node.dispose()
jacobperron pushed a commit to osrf/ros2_java that referenced this pull request Nov 10, 2020
* clear node/context handle on RclJava.cleanup()

* clear publishers, subscriptions, clients, services and timers on Node.dispose()
jacobperron pushed a commit to osrf/ros2_java that referenced this pull request Nov 10, 2020
* clear node/context handle on RclJava.cleanup()

* clear publishers, subscriptions, clients, services and timers on Node.dispose()
jacobperron pushed a commit that referenced this pull request May 17, 2021
* clear node/context handle on RclJava.cleanup()

* clear publishers, subscriptions, clients, services and timers on Node.dispose()
ivanpauno pushed a commit to osrf/ros2_java that referenced this pull request May 17, 2021
* clear node/context handle on RclJava.cleanup()

* clear publishers, subscriptions, clients, services and timers on Node.dispose()
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.

3 participants