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

Bugfix: Event publisher not starting for second run Recorder::Record() after Stop() #1888

Merged

Conversation

MichaelOrlov
Copy link
Contributor

@MichaelOrlov MichaelOrlov commented Dec 26, 2024

This PR fixes a bug when the event publisher thread, which is responsible for publishing on_bag_split_event events, doesn't start when calling Recorder::Record() after a previous call to Recorder::Stop().

RCA: The event publisher thread was starting and exiting immediately because event_publisher_thread_should_exit_ was not initialized to false after calling the Recorder::Stop() API.

@MichaelOrlov MichaelOrlov force-pushed the morlov/bugfix_event_pub_not_starting_for_second_run branch from 6ba853b to de9782f Compare December 26, 2024 20:57
@MichaelOrlov MichaelOrlov marked this pull request as ready for review December 26, 2024 20:58
Copy link
Contributor

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

lgtm with green CI

@fujitatomoya
Copy link
Contributor

Pulls: #1888
Gist: https://gist.githubusercontent.com/fujitatomoya/7dc835efe2f7c0f7b62b9507ba2b122e/raw/a35c037c483e3fb33baeed12e6fa0518f8c798dc/ros2.repos
BUILD args: --packages-above-and-dependencies rosbag2_transport
TEST args: --packages-above rosbag2_transport
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/15017

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

@MichaelOrlov MichaelOrlov merged commit ffd8c7d into rolling Dec 30, 2024
12 checks passed
@MichaelOrlov MichaelOrlov deleted the morlov/bugfix_event_pub_not_starting_for_second_run branch December 30, 2024 02:44
@MichaelOrlov
Copy link
Contributor Author

https://github.com/Mergifyio backport jazzy

Copy link

mergify bot commented Dec 30, 2024

backport jazzy

✅ Backports have been created

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