cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject svn commit: r1068947 - /cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/gms/Gossiper.java
Date Wed, 09 Feb 2011 16:01:43 GMT
Author: brandonwilliams
Date: Wed Feb  9 16:01:42 2011
New Revision: 1068947

URL: http://svn.apache.org/viewvc?rev=1068947&view=rev
Log:
Revert "Keep endpoint state until aVeryLongTime."

Though harmless, this makes it impossible to know if a node is a
fatclient that has been removed, and causes repeated log messages
for aVeryLongTime.

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=1068947&r1=1068946&r2=1068947&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 16:01:42 2011
@@ -241,7 +241,6 @@ public class Gossiper implements IFailur
     */
     void evictFromMembership(InetAddress endpoint)
     {
-        endpointStateMap_.remove(endpoint);
         unreachableEndpoints_.remove(endpoint);
     }
 
@@ -459,6 +458,7 @@ 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