Skip to content

Commit ad1859c

Browse files
juliayakovlevfruch
authored andcommitted
fix(health checker): collect DC from gossip info
This commit ensures that the DC information is correctly parsed and collected, even when it appears after other data like schema, IP, or status. Previously, the parser would miss this information due to its location, but this change fixes that issue.
1 parent 0c48c9b commit ad1859c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdcm/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2882,7 +2882,7 @@ def get_gossip_info(self) -> dict[BaseNode, dict]:
28822882
elif line.startswith('DC:'):
28832883
dc = line.replace('DC:', '').split(',')[0]
28842884

2885-
if schema and ip and status:
2885+
if schema and ip and status and dc:
28862886
if node := node_ip_map.get(ip):
28872887
gossip_node_schemas[node] = {'schema': schema, 'status': status, 'dc': dc}
28882888
elif status in self.GOSSIP_STATUSES_FILTER_OUT:

0 commit comments

Comments
 (0)