We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description Currently we assert that the write succeeds in FileWriter, here:
FileWriter
mcap/cpp/mcap/include/mcap/writer.inl
Line 55 in d850fc5
This is an error that can occur in production. if the underlying storage medium fills up, and the user needs some kind of trail to debug why.
Steps To Reproduce Create a tmpfs with a limited max size, try writing past its size limit.
Expected Behavior Some kind of "storage is full" error
Actual Behavior "Assertion failed (size == written)"
The text was updated successfully, but these errors were encountered:
Is the storage medium filling up the only possible cause of this error?
Sorry, something went wrong.
No, this generalizes to all the errors that could result from calling fwrite. On linux, there's a list here: https://man7.org/linux/man-pages/man3/fputc.3p.html
fwrite
Got it. Is the idea that we check for size != written and then call errno() + strerror()?
size != written
errno()
strerror()
Yes, modulo thread-safety concerns. We may need some OS-specific stuff here.
errno() on Linux uses thread-local storage. I don't know about other platforms, and it will need some sort of #ifdef for Windows I imagine.
#ifdef
No branches or pull requests
Description
Currently we assert that the write succeeds in
FileWriter
, here:mcap/cpp/mcap/include/mcap/writer.inl
Line 55 in d850fc5
This is an error that can occur in production. if the underlying storage medium fills up, and the user needs some kind of trail to debug why.
Steps To Reproduce
Create a tmpfs with a limited max size, try writing past its size limit.
Expected Behavior
Some kind of "storage is full" error
Actual Behavior
"Assertion failed (size == written)"
The text was updated successfully, but these errors were encountered: