Skip to content

Conversation

@dkropachev
Copy link
Collaborator

@dkropachev dkropachev commented Nov 25, 2025

This event was introduced into the core recently, it is sent whenever system.conneciton_metadata table is updated.

There is one more change to it, this PR ease requirements to ent_scylla_version in xfail_scylla_version_lt.
Initially assumption was that new features are getting only into major releases, but it turned out that it is wrong assumption.
Now you can provide any ent_scylla_version into xfail_scylla_version_lt
Probably we need to consider to switch to version predicate instead, to make it more suitable for weird cases when feature gets into 2025.3.3, but not present in 2025.4.1.

Fixes: #602

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • I added relevant tests for new features and bug fixes.
  • All commits compile, pass static checks and pass test.
  • PR description sums up the changes and reasons why they should be introduced.
  • I have provided docstrings for the public items that I want to introduce.
  • I have adjusted the documentation in ./docs/source/.
  • I added appropriate Fixes: annotations to PR description.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for the CONNECTION_METADATA_CHANGE event, which was recently introduced in ScyllaDB core. This event is emitted when the system.connection_metadata table is updated, allowing the driver to be notified of connection metadata changes.

Key changes:

  • Added CONNECTION_METADATA_CHANGE to the list of known event types in the protocol handler
  • Implemented the recv_connection_metadata_change method to parse the event data (change type, connection IDs, and host IDs)
  • Added integration test to verify event reception and parsing

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
cassandra/protocol.py Added CONNECTION_METADATA_CHANGE to known event types and implemented parser method for the new event
tests/integration/standard/test_control_connection.py Added integration test that verifies the driver can register for and receive CONNECTION_METADATA_CHANGE events

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@dkropachev dkropachev force-pushed the dk/add-support-of-connection-metadata-event branch from 5ae7d00 to aad2187 Compare November 25, 2025 21:07
It turns out that scylla can get new features in the minor version.
So, let's ease requirement to ent_scylla_versio and allow any version
there.
This event was introduced into the core recently, it is sent whenever
`system.conneciton_metadata` table is updated.
@dkropachev dkropachev force-pushed the dk/add-support-of-connection-metadata-event branch from aad2187 to 54535a9 Compare November 25, 2025 21:29
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks as expected from the perspective of core

@dkropachev dkropachev merged commit 390e165 into scylladb:master Nov 26, 2025
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for CONNECTION_METADATA_CHANGE event

3 participants