Skip to content

Add more RAFT tests#4626

Merged
derekcollison merged 1 commit intomainfrom
marco/raft-chain-test
Jan 6, 2025
Merged

Add more RAFT tests#4626
derekcollison merged 1 commit intomainfrom
marco/raft-chain-test

Conversation

@mprimi
Copy link
Copy Markdown
Contributor

@mprimi mprimi commented Oct 4, 2023

Add 'Chain of Blocks' tests for Raft/NRG

Chain of Blocks is a simple state machine on top of Raft/NRG.
Values delivered through Raft are hashed allowing for easy verification of replicas divergence.

  • Add one happy-path test
  • Add one test for recovery/catchup
  • Add a 'Long' randomized test

Signed-off-by: marco@nats.io

@mprimi mprimi force-pushed the marco/raft-chain-test branch from 76267e5 to 6789d2d Compare December 7, 2023 20:11
@mprimi mprimi force-pushed the marco/raft-chain-test branch from 6789d2d to e92592e Compare January 3, 2024 23:13
@mprimi mprimi force-pushed the marco/raft-chain-test branch from e2744a4 to 7950364 Compare January 19, 2024 20:48
@mprimi mprimi force-pushed the marco/raft-chain-test branch 3 times, most recently from a73cbc3 to 7eb306e Compare December 19, 2024 09:28
@mprimi mprimi marked this pull request as ready for review December 19, 2024 16:24
@mprimi mprimi requested a review from a team as a code owner December 19, 2024 16:24
@mprimi mprimi force-pushed the marco/raft-chain-test branch from 7eb306e to fc3553a Compare January 2, 2025 21:33
Copy link
Copy Markdown
Member

@MauriceVanVeen MauriceVanVeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment, otherwise LGTM

Chain of Blocks is a simple state machine on top of Raft/NRG.
Values delivered through Raft are hashed allowing for easy verification
of replicas divergence.

 - Add one happy-path test
 - Add one test for recovery/catchup
 - Add a 'Long' randomized test
@mprimi mprimi force-pushed the marco/raft-chain-test branch from fc3553a to b8b8916 Compare January 6, 2025 17:46
@mprimi mprimi requested a review from MauriceVanVeen January 6, 2025 18:34
Copy link
Copy Markdown
Member

@MauriceVanVeen MauriceVanVeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@derekcollison derekcollison merged commit d069611 into main Jan 6, 2025
@derekcollison derekcollison deleted the marco/raft-chain-test branch January 6, 2025 21:22
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.

3 participants