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

vsr: verify that FreeSet index is consistent #1319

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

matklad
Copy link
Member

@matklad matklad commented Nov 23, 2023

None of our fuzzers actually checks that. In theory, the simulator can discover inconsistencies when a replica restarts (decoding free set from disk resets the index), but, given that the shard size is 4096, this is quite unlikely.

With this change, injecting a bug in index computation gets discovered by free set fuzzer at least.

None of our fuzzers actually checks that. In theory, the simulator can
discover inconsistencies when a replica restarts (decoding free set from
disk resets the index), but, given that the shard size is 4096, this is
quite unlikely.

With this change, injecting a bug in index computation gets discovered
by free set fuzzer at least.

See
#1309 (comment)
for an example of a bug this assert guards against.
@matklad matklad force-pushed the matklad/verify-free-set-index branch from f8adc26 to 076bc77 Compare November 23, 2023 14:20
@matklad matklad added this pull request to the merge queue Nov 28, 2023
Merged via the queue into main with commit d810282 Nov 28, 2023
27 checks passed
@matklad matklad deleted the matklad/verify-free-set-index branch November 28, 2023 14:26
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

Successfully merging this pull request may close these issues.

2 participants