cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject 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:14:19 GMT
Updated Branches:
  refs/heads/cassandra-1.2 942444971 -> 558483dd2


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/558483dd
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/558483dd
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/558483dd

Branch: refs/heads/cassandra-1.2
Commit: 558483dd20439d1bc74dec6ebed0b4632ef5a1ca
Parents: 9424449
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:12:31 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/558483dd/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