2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +00:00

Fix quorum check in configmanager.py

This commit is contained in:
Jarrod Johnson 2020-08-26 13:35:19 -04:00
parent b12a5f6ec6
commit 46fc4d626d

View File

@ -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: