Repository navigation
[release-8.0] Storage server: let a knob drop mutations delivered to a not-assigned shard at one version - #14480
Merged
Conversation
… shard at one version (apple#14419) A mutation delivered to a not-assigned shard asserts, and since the commit has already succeeded the storage server then replays the same version after every restart and crash-loops. Add SS_SKIP_DELIVERED_TO_NOT_ASSIGNED_VERSION so an operator can drop mutations at exactly one version while recovering. Default 0 keeps the current behaviour. The DeliveredToNotAssigned trace now carries the full hex of the key and value so a dropped mutation can be replayed by hand. (cherry picked from commit 336ca48)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
nos-a
approved these changes
Nov 9, 2026
spraza
approved these changes
Nov 9, 2026
saintstack
enabled auto-merge (squash)
November 10, 2026 01:12
Contributor
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-macos-m1 on macOS
|
Contributor
Result of foundationdb-pr-clang on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang-arm on Linux RHEL 9
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-macos on macOS
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
This was referenced Nov 11, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #14419 to release-8.0. Clean
cherry-pick -xof 336ca48; no conflicts. Same 3 files, +51/-2.A mutation delivered to a not-assigned shard asserts. The commit has already succeeded, so the storage server replays the same version after every restart and crash-loops until the mutation is dropped. This adds
SS_SKIP_DELIVERED_TO_NOT_ASSIGNED_VERSION(default 0, current behaviour). When non-zero, a mutation delivered to a not-assigned shard at exactly that version is dropped instead of asserting, so an operator can recover a crash-looping storage server with a knob rather than a patched binary. TheDeliveredToNotAssignedtrace now carries the full hex of the key and value. See #14419 for the full description.Testing: release-8.0 build, macOS arm64 Release.
fdbserver_storageserver_test --simulation: 8 tests passed, 0 failed, including/fdbserver/storageserver/deliveredToNotAssigned. No simulation or Joshua run; CI to confirm.