etcd-io / raft

Raft library for maintaining a replicated state machine
Apache License 2.0
630 stars 160 forks source link

Trace validation test #192

Open joshuazh-x opened 5 months ago

joshuazh-x commented 5 months ago

This is a demo test case to generate raft traces with random faults. Run the command below to generate 5 trace files saved in /path/to/traces/ folder.

TEST_TRACE_LOG=/path/to/traces go test -run ^TestRunClustersWithRandomFaults$ go.etcd.io/raft/v3/rafttest -tags=with_tla
ahrtr commented 3 months ago

Please rebase this PR, I will take a look later.