Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
35626: storage: Sync to disk before returning in WaitForApplication r=tbg a=bdarnell This prevents on-disk inconsistencies when a node crashes in the middle of a merge and the lease applied index temporarily regresses. Fixes #33120 Release note (bug fix): Fixed an on-disk inconsistency that could result from a crash during a range merge. The second commit is a manual test (adapted from @tbg) that demonstrates the "overlapping range" failure if the WriteSyncNoop call is removed, and also shows that this call fixes the problem. It's obviously not mergeable in its current state, but I'm not sure how to test this without some gross hacks. Co-authored-by: Ben Darnell <[email protected]>
- Loading branch information