Skip to content
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

Ensure that shutdown event is handled correctly #154

Merged
merged 2 commits into from
Nov 15, 2018

Conversation

mjcarroll
Copy link
Member

There is a potential race condition in bewteen when the shutdown event
is emitted and the rest of the shutdown handling code. This introduces
an additional await to ensure that the event is emitted before
proceeding.

There is a potential race condition in bewteen when the shutdown event
is emitted and the rest of the shutdown handling code.  This introduces
an additional await to ensure that the event is emitted before
proceeding.
@mjcarroll mjcarroll added the in progress Actively being worked on (Kanban column) label Nov 13, 2018
@mjcarroll
Copy link
Member Author

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

Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

lgtm

@mjcarroll mjcarroll added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Nov 13, 2018
@mjcarroll
Copy link
Member Author

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

Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -57,7 +57,7 @@ def _assert_type_error_creating_node(self, *, parameters=None, remappings=None):
def test_launch_invalid_node(self):
"""Test launching an invalid node."""
node_action = launch_ros.actions.Node(
package='nonexistent_package', node_executable='node', output='screen'),
package='nonexistent_package', node_executable='node', output='screen')
Copy link
Member

Choose a reason for hiding this comment

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

We think this was always causing a subtle bug (node_action was a single item tuple rather than just a single item), but was being hidden because the tests didn't complete due to the race condition being fixed in this pull request.

@mjcarroll
Copy link
Member Author

And the windows rebuild after umlaut-gate: Build Status

@mjcarroll mjcarroll merged commit 282fb08 into master Nov 15, 2018
@mjcarroll mjcarroll deleted the roslaunch_hang_on_shutdown branch November 15, 2018 20:58
@mjcarroll mjcarroll removed the in review Waiting for review (Kanban column) label Nov 15, 2018
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.

2 participants