-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If data corruption was found in the newest block, all blocks would be released and trigger a panic when no block was allocated for writing. See the stack trace below where lbm.newBlocks=0 and i=0 leads to lbm.allocationAttemptsRemaining = 1 << -1 which panics. 2023/11/08 14:33:20 rpc error: code = Internal desc = Releasing 1 blocks due to a data integrity error panic: runtime error: negative shift amount goroutine 15748 [running]: github.com/buildbarn/bb-storage/pkg/blobstore/local.(*OldCurrentNewLocationBlobMap).startAllocatingFromBlock(...) pkg/blobstore/local/old_current_new_location_blob_map.go:259 github.com/buildbarn/bb-storage/pkg/blobstore/local.(*OldCurrentNewLocationBlobMap).findBlockWithSpace(0xc00025e140, 0x232) pkg/blobstore/local/old_current_new_location_blob_map.go:302 +0x66a github.com/buildbarn/bb-storage/pkg/blobstore/local.(*OldCurrentNewLocationBlobMap).Put(0xc00025e140, 0x232) pkg/blobstore/local/old_current_new_location_blob_map.go:363 +0x27 Fixes: #181
- Loading branch information
1 parent
519a894
commit 670d2c5
Showing
2 changed files
with
97 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters