don't check schema agreement with ignored hosts
PYTHON-531
This commit is contained in:
@@ -2569,13 +2569,14 @@ class ControlConnection(object):
|
||||
if local_row.get("schema_version"):
|
||||
versions[local_row.get("schema_version")].add(local_address)
|
||||
|
||||
lbp = self._cluster.load_balancing_policy
|
||||
for row in peers_result:
|
||||
schema_ver = row.get('schema_version')
|
||||
if not schema_ver:
|
||||
continue
|
||||
addr = self._rpc_from_peer_row(row)
|
||||
peer = self._cluster.metadata.get_host(addr)
|
||||
if peer and peer.is_up:
|
||||
if peer and peer.is_up and lbp.distance(peer) != HostDistance.IGNORED:
|
||||
versions[schema_ver].add(addr)
|
||||
|
||||
if len(versions) == 1:
|
||||
|
Reference in New Issue
Block a user