Skip to content

Make sure system.peers and peers_v2 match cluster metadata #4630

Open
minal-kyada wants to merge 3 commits intoapache:trunkfrom
minal-kyada:cassandra-168065336
Open

Make sure system.peers and peers_v2 match cluster metadata #4630
minal-kyada wants to merge 3 commits intoapache:trunkfrom
minal-kyada:cassandra-168065336

Conversation

@minal-kyada
Copy link
Contributor

@minal-kyada minal-kyada commented Feb 24, 2026

Description:
system.peers and system.peers_v2 can drift out of sync with ClusterMetadata, causing clients who use older C* version and tools that read these legacy tables to observe incorrect cluster topology.

Adds SystemPeersValidator which reconciles both peer tables against ClusterMetadata on startup- removing stale entries for nodes no longer in the cluster, repairing missing entries for joined nodes and updating the stale fields of nodes if present in both. Also exposes this as a JMX operation via StorageServiceMBean so operators can trigger it on demand without restarting.

Quick diagram of what the patch is about:
image

patch by @minal-kyada; reviewed by @beobal @ifesdjeen for CASSANDRA-21187

@minal-kyada minal-kyada requested a review from ifesdjeen March 4, 2026 16:27
@minal-kyada minal-kyada force-pushed the cassandra-168065336 branch from f9e0982 to a23e2b7 Compare March 4, 2026 17:39
@beobal beobal self-requested a review March 5, 2026 07:41
@minal-kyada minal-kyada requested a review from beobal March 10, 2026 16:18
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.

3 participants