mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 19:10:10 +00:00
Have collective start bail out if leader
Leader should not relinquish if quorum, so don't bother in such a case.
This commit is contained in:
parent
b0b5493ff7
commit
4329c1d388
@ -535,6 +535,12 @@ def start_collective():
|
||||
if follower:
|
||||
follower.kill()
|
||||
follower = None
|
||||
try:
|
||||
if cfm.cfgstreams and cfm.check_quorum():
|
||||
# Do not start if we have quorum and are leader
|
||||
return
|
||||
except exc.DegradedCollective:
|
||||
pass
|
||||
if leader_init.active: # do not start trying to connect if we are
|
||||
# xmitting data to a follower
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user