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

Index::add_entry debug assertions fails: incorrect file length #7

Open
Thomasdezeeuw opened this issue Aug 25, 2020 · 0 comments
Open

Comments

@Thomasdezeeuw
Copy link
Owner

Location:

stored/src/storage/mod.rs

Lines 1302 to 1304 in b2038ad

// FIXME: this fails sometimes on macOS, the file being 88 bytes
// (1 entry) smaller than we expect it to be.
debug_assert_eq!(self.file.metadata().unwrap().len(), self.length);

Sometimes (on macOS) it fails when adding multiple blobs, even though everything seems to work correctly and all tests pass. Just above those lines we write a new a entry and sync that to disk, but we get a difference in the "actual" file length and the file length in-memory (self.length).

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

No branches or pull requests

1 participant