Skip to content

Simplify vote log freshness tests - #672

Merged
greensky00 merged 1 commit into
eBay:masterfrom
greensky00:pr3
Oct 8, 2026
Merged

greensky00 merged 1 commit into
eBay:masterfrom
greensky00:pr3

Conversation

@greensky00

Copy link
Copy Markdown
Contributor
  • Replace the four vote log freshness tests with a single test.

  • Only the fully compacted case reproduces the bug fixed in Fix RequestVote freshness after full log compaction #668; the other three pass with or without the fix.

  • Drop unused setup: extra log appends, the stale follower log, and unrelated raft params.

  • Keep three vote checks: reject a shorter log, reject a lower term, and grant an equally up-to-date log.

* Replace the four vote log freshness tests with a single test.

* Only the fully compacted case reproduces the bug fixed in eBay#668;
  the other three pass with or without the fix.

* Drop unused setup: extra log appends, the stale follower log,
  and unrelated raft params.

* Keep three vote checks: reject a shorter log, reject a lower
  term, and grant an equally up-to-date log.
@greensky00
greensky00 merged commit 6482bad into eBay:master Oct 8, 2026
2 checks passed
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.

1 participant