mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 11:01:09 +00:00
Fix quorum check in configmanager.py
This commit is contained in:
parent
b12a5f6ec6
commit
46fc4d626d
@ -311,7 +311,7 @@ def _rpc_set_group_attributes(tenant, attribmap, autocreate):
|
||||
def check_quorum():
|
||||
if isinstance(cfgleader, bool):
|
||||
raise exc.DegradedCollective()
|
||||
if cfgstreams and len(cfgstreams) < (len(_cfgstore['collective']) // 2):
|
||||
if (not cfgleader) and len(cfgstreams) < (len(_cfgstore['collective']) // 2):
|
||||
# the leader counts in addition to registered streams
|
||||
raise exc.DegradedCollective()
|
||||
if cfgleader and not _hasquorum:
|
||||
|
Loading…
Reference in New Issue
Block a user