eBay / NuRaft

C++ implementation of Raft core logic as a replication library
Apache License 2.0
1.01k stars 240 forks source link

Fix test error #386

Closed JackyWoo closed 1 year ago

JackyWoo commented 1 year ago

Change log :

  1. election_timeout_lower_bound_ can not be 0.
  2. Add invoke_election_timer method identicating that we must wait election timeout before trigger leader election.
  3. Only S1 is leader in init_options_test but not all .
  4. Remove server msg should deliver to S3 in rmv_not_resp_srv_wq_test.
  5. We should sleep some time lower than heart_beat_interval_ when waiting reconnecting in follower_reconnect_test.
  6. Change RaftAsioPkg::HEARTBEAT_MS to 125 (the default value)
JackyWoo commented 1 year ago

@greensky00 all tests passed and cound you take a look at chage log 3, 4?