Skip to content

Abort when the max_file_size is too small#150

Open
tempate wants to merge 2 commits into
mainfrom
hotfix/mcap_writer_error_handling
Open

Abort when the max_file_size is too small#150
tempate wants to merge 2 commits into
mainfrom
hotfix/mcap_writer_error_handling

Conversation

@tempate
Copy link
Copy Markdown
Contributor

@tempate tempate commented Jul 9, 2024

This PR fixes two minor bugs:

  1. Before, when the size of a dataless MCAP file was larger than the max_file_size, the McapWriter was not capturing the error correctly and kept trying to write data to it. Now, the McapWriter aborts as if the disk was full.
  2. Before, the McapWriter attempted to write to the MCAP file even after the file was closed. Now, if the McapWriter fails to open a new file, it will never try to write to it.

tempate added 2 commits July 9, 2024 11:34
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
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.

1 participant