MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / on_remove

Method on_remove

cassandra/cluster.py:4207–4214  ·  view source on GitHub ↗
(self, host)

Source from the content-addressed store, hash-verified

4205 self.refresh_node_list_and_token_map(force_token_rebuild=True)
4206
4207 def on_remove(self, host):
4208 c = self._connection
4209 if c and c.endpoint == host.endpoint:
4210 log.debug("[control connection] Control connection host (%s) is being removed. Reconnecting", host)
4211 # refresh will be done on reconnect
4212 self.reconnect()
4213 else:
4214 self.refresh_node_list_and_token_map(force_token_rebuild=True)
4215
4216 def get_connections(self):
4217 c = getattr(self, '_connection', None)

Callers

nothing calls this directly

Calls 2

reconnectMethod · 0.95

Tested by

no test coverage detected