cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject [1/5] git commit: Remove dead node from system.peers when replacing. Patch by brandonwilliams, reviewed by Jeremiah Jordan for CASSANDRA-6217
Date Fri, 18 Oct 2013 16:13:47 GMT
Updated Branches:
  refs/heads/cassandra-2.0 718e3ec8b -> ff5db5635
  refs/heads/trunk 3017dd34f -> 8e0aa710d


Remove dead node from system.peers when replacing.
Patch by brandonwilliams, reviewed by Jeremiah Jordan for CASSANDRA-6217


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

Branch: refs/heads/cassandra-2.0
Commit: 4a382ff4565f6c85e36587683051257e1abb590d
Parents: 300f153
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Fri Oct 18 11:11:24 2013 -0500
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Fri Oct 18 11:11:24 2013 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/service/StorageService.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/4a382ff4/src/java/org/apache/cassandra/service/StorageService.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/StorageService.java b/src/java/org/apache/cassandra/service/StorageService.java
index d2c69d0..11393c6 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -965,6 +965,7 @@ public class StorageService extends NotificationBroadcasterSupport implements
IE
         {
             // Dont set any state for the node which is bootstrapping the existing token...
             tokenMetadata.updateNormalTokens(tokens, FBUtilities.getBroadcastAddress());
+            SystemTable.removeEndpoint(DatabaseDescriptor.getReplaceAddress());
         }
         Tracing.instance();
         if (!Gossiper.instance.seenAnySeed())


Mime
View raw message