Skip to content

Conversation

@sung-goo-kim
Copy link
Contributor

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

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
Copy link
Member

esteve commented Sep 16, 2020

@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
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.

Copy link
Contributor

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

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

LGTM

@esteve
Copy link
Member

esteve commented Sep 30, 2020

@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