don't throw away a host that is in the contact points list

This commit is contained in:
Russ Bradberry
2013-12-12 16:48:10 -05:00
parent d68d8629a2
commit 7ec61e4d1a

View File

@@ -1479,7 +1479,8 @@ class ControlConnection(object):
for old_host in self._cluster.metadata.all_hosts(): for old_host in self._cluster.metadata.all_hosts():
if old_host.address != connection.host and \ if old_host.address != connection.host and \
old_host.address not in found_hosts: old_host.address not in found_hosts and \
old_host.address not in self._cluster.contact_points:
log.debug("[control connection] Found host that has been removed: %r", old_host) log.debug("[control connection] Found host that has been removed: %r", old_host)
self._cluster.remove_host(old_host) self._cluster.remove_host(old_host)