cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject [05/15] cassandra git commit: Print versions for gossip states in gossipinfo.
Date Wed, 16 Sep 2015 14:45:20 GMT
Print versions for gossip states in gossipinfo.

Patch by brandonwilliams, reviewed by Stefania for CASSANDRA-10330


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/ae4cd692
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/ae4cd692
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/ae4cd692

Branch: refs/heads/cassandra-3.0
Commit: ae4cd6926b04b4c9faa0e716208507110fefdda4
Parents: 257cdaa
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Wed Sep 16 09:43:51 2015 -0500
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Wed Sep 16 09:43:51 2015 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/gms/FailureDetector.java | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/ae4cd692/src/java/org/apache/cassandra/gms/FailureDetector.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/gms/FailureDetector.java b/src/java/org/apache/cassandra/gms/FailureDetector.java
index 8fdd99f..edbe578 100644
--- a/src/java/org/apache/cassandra/gms/FailureDetector.java
+++ b/src/java/org/apache/cassandra/gms/FailureDetector.java
@@ -148,7 +148,15 @@ public class FailureDetector implements IFailureDetector, FailureDetectorMBean
         {
             if (state.getKey() == ApplicationState.TOKENS)
                 continue;
-            sb.append("  ").append(state.getKey()).append(":").append(state.getValue().value).append("\n");
+            sb.append("  ").append(state.getKey()).append(":").append(state.getValue().version).append(":").append(state.getValue().value).append("\n");
+        }
+        if (endpointState.applicationState.containsKey(ApplicationState.TOKENS))
+        {
+            sb.append("  TOKENS:").append(endpointState.applicationState.get(ApplicationState.TOKENS).version).append(":<hidden>\n");
+        }
+        else
+        {
+            sb.append("  TOKENS: not present");
         }
     }
 


Mime
View raw message