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: Update metadata with new file_info before saving it the first time in the file #1843

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

MichaelOrlov
Copy link
Contributor

This PR is a bug fix for missing file_info for newly created file in saved metadata.

When we are switching to new storage, the correct behavior shall be as follows:

  1. Save metadata to storage
  2. Close current storage
  3. Open new storage for read_write
  4. Update metadata with a newly created file
  5. Save metadata to storage

@MichaelOrlov MichaelOrlov marked this pull request as ready for review October 27, 2024 05:58
@MichaelOrlov MichaelOrlov requested a review from a team as a code owner October 27, 2024 05:58
@MichaelOrlov MichaelOrlov requested review from emersonknapp, jhdcs, christophebedard and fujitatomoya and removed request for a team, emersonknapp and jhdcs October 27, 2024 05:58
@MichaelOrlov
Copy link
Contributor Author

@ros-pull-request-builder retest this please

Copy link
Member

@christophebedard christophebedard left a comment

Choose a reason for hiding this comment

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

Looks good to me with green CI.

@MichaelOrlov MichaelOrlov force-pushed the morlov/update_metadata_before_saving branch from 4b35616 to 07e5672 Compare November 1, 2024 23:43
@MichaelOrlov
Copy link
Contributor Author

Pulls: #1843
Gist: https://gist.githubusercontent.com/MichaelOrlov/9e3fdad4ca5ccf152d70e2b2ddfced12/raw/e9f907208e030ed0d619019b76d2f62f11d9917b/ros2.repos
BUILD args: --packages-above-and-dependencies rosbag2_compression rosbag2_cpp rosbag2_tests
TEST args: --packages-above rosbag2_compression rosbag2_cpp rosbag2_tests
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/14778

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

@christophebedard
Copy link
Member

Something weird happened in that Windows job

@ahcorde
Copy link
Contributor

ahcorde commented Nov 4, 2024

  • Windows Build Status

@MichaelOrlov MichaelOrlov merged commit b5098ef into rolling Nov 4, 2024
12 checks passed
@MichaelOrlov MichaelOrlov deleted the morlov/update_metadata_before_saving branch November 4, 2024 17:11
@MichaelOrlov
Copy link
Contributor Author

https://github.com/Mergifyio backport jazzy

Copy link

mergify bot commented Nov 4, 2024

backport jazzy

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Nov 4, 2024
MichaelOrlov added a commit that referenced this pull request Nov 7, 2024
#1843) (#1853)

Signed-off-by: Michael Orlov <[email protected]>
(cherry picked from commit b5098ef)

Co-authored-by: Michael Orlov <[email protected]>
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