lni / dragonboat

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

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

Open fishjam opened 11 months ago

fishjam commented 11 months ago

Dragonboat version

Expected behavior

Steps to reproduce the behavior

image

lni commented 11 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 11 months ago

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

thanks.