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

Abort when the max_file_size is too small #150

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Tempate
Copy link
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.

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