You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bugfix for writer not being able to open again after closing (ros2#1599)
* re-applies fixes from ros2#1590 to rolling. Also removes new message definition in sequential writer test for multiple open operations. Also clears topic_names_to_message_definitions_ and handles message_definitions_s underlying container similarly. Lastly, also avoids reset of factory in the compression writer, adds unit test there too.
Signed-off-by: Yannick Schulz <[email protected]>
* removes unused compressor_ member from compresser writer class. Also delegates rest of the closing behavior to the base class in close method, as it is handled in the open and write methods of the compression writer
Signed-off-by: Yannick Schulz <[email protected]>
* Remove unrelated delta
- message_definitions_ was intentionally allocated on the stack and
should persist between writer close() and open() because it represents
cache for message definitions which is not changes.
Signed-off-by: Michael Orlov <[email protected]>
* Don't call virtual methods from destructors
Signed-off-by: Michael Orlov <[email protected]>
* Cleanup 'rosbag2_directory_next' after the test run
Signed-off-by: Michael Orlov <[email protected]>
* Protect Writer::open(..) and Writer::close() with mutex on upper level
- Rationale: To avoid race conditions if open(..) and close() could be
ever be called from different threads.
Signed-off-by: Michael Orlov <[email protected]>
* Bugfix for WRITE_SPLIT callback not called for the last compressed file
Signed-off-by: Michael Orlov <[email protected]>
* Bugfix for lost messages from cache when closing compression writer
Signed-off-by: Michael Orlov <[email protected]>
* Use dedicated is_open_ flag instead of relying on storage_
Signed-off-by: Michael Orlov <[email protected]>
---------
Signed-off-by: Yannick Schulz <[email protected]>
Signed-off-by: Michael Orlov <[email protected]>
Co-authored-by: Michael Orlov <[email protected]>
0 commit comments