cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject svn commit: r1068938 - /cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/gms/Gossiper.java
Date Wed, 09 Feb 2011 15:37:58 GMT
Author: brandonwilliams
Date: Wed Feb  9 15:37:58 2011
New Revision: 1068938

URL: http://svn.apache.org/viewvc?rev=1068938&view=rev
Log:
Keep endpoint state until aVeryLongTime.
Patch by brandonwilliams reviewed by gdusbabek for CASSANDRA-2115

Modified:
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/gms/Gossiper.java

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/gms/Gossiper.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/gms/Gossiper.java?rev=1068938&r1=1068937&r2=1068938&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/gms/Gossiper.java (original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/gms/Gossiper.java Wed Feb
 9 15:37:58 2011
@@ -241,6 +241,7 @@ public class Gossiper implements IFailur
     */
     void evictFromMembership(InetAddress endpoint)
     {
+        endpointStateMap_.remove(endpoint);
         unreachableEndpoints_.remove(endpoint);
     }
 
@@ -456,7 +457,6 @@ public class Gossiper implements IFailur
                     if (logger_.isDebugEnabled())
                         logger_.debug(QUARANTINE_DELAY + " elapsed, " + entry.getKey() +
" gossip quarantine over");
                     justRemovedEndpoints_.remove(entry.getKey());
-                    endpointStateMap_.remove(entry.getKey());
                 }
             }
         }



Mime
View raw message