app: Only perform spare check as of a certain cluster size. #139
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.
run
https://github.com/canonical/jepsen.dqlite/actions/runs/7455383815/job/20284385625
assertion
log
This looks like a false positive triggered by the following logic in go-dqlite:
https://github.com/canonical/go-dqlite/blob/4edab5e2dd71e25576b5095b2f3ebdea2664e1a0/app/roles.go#L135
The jepsen cluster doesn't have the minimum required size, because the member nemesis has removed a bunch of members.
The fix is to perform a specific check when the cluster doesn't have a certain minimum size.