Skip to content

Commit

Permalink
Fix Down nodes counter in nodetool describecluster
Browse files Browse the repository at this point in the history
patch by Goel Ranju; reviewed by Brandon Williams and Stefan Miklosovic for CASSANDRA-18512
  • Loading branch information
rgitt authored and smiklosovic committed Jun 5, 2023
1 parent be8cd8a commit 5655a33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
@@ -1,8 +1,8 @@
4.0.11
* Fix Down nodes counter in nodetool describecluster (CASSANDRA-18512)
* Remove unnecessary shuffling of GossipDigests in Gossiper#makeRandomGossipDigest (CASSANDRA-18546)
Merged from 3.11:
Merged from 3.0:
3.0.30
* Suppress CVE-2023-2976 (CASSANDRA-18562)
* Remove dh_python use in Debian packaging (CASSANDRA-18558)

Expand Down
Expand Up @@ -119,7 +119,7 @@ public void execute(NodeProbe probe)
for (InetAddressAndPort endpoint : hostToTokens.keySet())
{
totalNodes++;
if (unreachableNodes.contains(endpoint.toString()))
if (unreachableNodes.contains(endpoint.getHostAddressAndPort()))
downNodes++;
}
out.print(" #Nodes: " + totalNodes);
Expand Down

0 comments on commit 5655a33

Please sign in to comment.