Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cassandra/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ def send_body(self, f, protocol_version):
'TOPOLOGY_CHANGE',
'STATUS_CHANGE',
'SCHEMA_CHANGE',
'CONNECTION_METADATA_CHANGE'
'CLIENT_ROUTES_CHANGE'
))


Expand Down Expand Up @@ -989,7 +989,7 @@ def recv_body(cls, f, protocol_version, *args):
raise NotSupportedError('Unknown event type %r' % event_type)

@classmethod
def recv_connection_metadata_change(cls, f, protocol_version):
def recv_client_routes_change(cls, f, protocol_version):
# "UPDATE_NODES"
change_type = read_string(f)
connection_ids = read_stringlist(f)
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/standard/test_control_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ def test_control_connection_port_discovery(self):
assert 9042 == host.broadcast_rpc_port
assert 7000 == host.broadcast_port

@xfail_scylla_version_lt(reason='scylladb/scylladb#26992 - system.connection_metadata is not yet supported',
@xfail_scylla_version_lt(reason='scylladb/scylladb#26992 - system.client_routes is not yet supported',
oss_scylla_version="7.0", ent_scylla_version="2025.4.0")
def test_connection_metadata_change_event(self):
def test_client_routes_change_event(self):
cluster = TestCluster()

# Establish control connection
Expand All @@ -157,7 +157,7 @@ def on_event(event):
finally:
flag.set()

cluster.control_connection._connection.register_watchers({"CONNECTION_METADATA_CHANGE": on_event})
cluster.control_connection._connection.register_watchers({"CLIENT_ROUTES_CHANGE": on_event})

try:
payload = [
Expand Down Expand Up @@ -185,7 +185,7 @@ def on_event(event):
}
]
response = requests.post(
"http://" + cluster.contact_points[0] + ":10000/v2/connection-metadata",
"http://" + cluster.contact_points[0] + ":10000/v2/client-routes",
json=payload,
headers={
"Content-Type": "application/json",
Expand Down
Loading