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

[jazzy] Bugfix for bag_split event callbacks called to early with file compression (backport #1643) #1732

Open
wants to merge 1 commit into
base: jazzy
Choose a base branch
from

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Jun 26, 2024

  • Bugfix for bag_split event callbacks calling to early when using file compression option for rosbag2_cpp::Writer. i.e. callbacks calling when the bag file closes. However, the expected behavior is that callbacks are called when compression is finished and the original bag file is deleted.
  • Done with fix. However, missing regression tests.

Update: Jun-06-2024 Added unit tests to cover changes.


This is an automatic backport of pull request #1643 done by Mergify.

…ssion (#1643)

* Bugfix for bag_split event callbacks not called with file compression

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Delete redundant "should_split_bagfile" in compression_writer

- It is a non-virtual method and doesn't call from the base class.

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Adjust "split_event_calls_callback" for testing multiple splits

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Use temp folder for "SequentialWriterTest" fixture instead of "uri"

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Add tests for split event callbacks when using file and msg compression

 - Added "split_event_calls_callback_with_msg_compression" and
"split_event_calls_callback_with_file_compression" uit tests

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Add debug info to the flaky "can_record_again_after_stop" test

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Use `uint64_t` type for `fake_storage_size_` in tests

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

---------

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
(cherry picked from commit 1877b53)
@mergify mergify bot requested a review from a team as a code owner June 26, 2024 22:19
@mergify mergify bot requested review from gbiggs and hidmic and removed request for a team June 26, 2024 22:19
@MichaelOrlov MichaelOrlov changed the title Bugfix for bag_split event callbacks called to early with file compression (backport #1643) [jazzy] Bugfix for bag_split event callbacks called to early with file compression (backport #1643) Jun 26, 2024
@MichaelOrlov MichaelOrlov requested review from MichaelOrlov and removed request for gbiggs and hidmic June 26, 2024 23:54
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.

None yet

1 participant