You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In braft's current implementation. if user call transfer_leadership_to a follower, The original leader will call on_leader_stop then wait for the destination follower to catch up log and become new leader. During this time, the raft group can not serve writes.
If there's a big gap between leader's log and the destination follower's log, it will take a long time to wait for the follower to catch up until transfer timeout.
In braft's current implementation. if user call
transfer_leadership_to
a follower, The original leader will callon_leader_stop
then wait for the destination follower to catch up log and become new leader. During this time, the raft group can not serve writes.If there's a big gap between leader's log and the destination follower's log, it will take a long time to wait for the follower to catch up until transfer timeout.
Similar issue: #422
Checking if follower's log is new enough before we actually do transfer_leader may be a nice improvement.
If the improvement is needed, I can submit a PR for it
The text was updated successfully, but these errors were encountered: