lni / dragonboat

A feature complete and high performance multi-group Raft library in Go.
Apache License 2.0
4.98k stars 533 forks source link

[Bug?]Question about raft.leaderHasQuorum function call setNotActive #336

Open fishjam opened 6 months ago

fishjam commented 6 months ago

Dragonboat version

Expected behavior

Steps to reproduce the behavior

image

lni commented 6 months ago

or what's the purpose of active? Is it used to indicate whether the remote is valid (can send heartbeats and receive responses)?

It means the remote side sent some responses back since the last call to leaderCheckQuorum()

lni commented 6 months ago

do you want to send in a PR to add some comments on the meaning of this flag?

thanks.