cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject svn commit: r1096930 - /cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/Gossiper.java
Date Tue, 26 Apr 2011 22:12:37 GMT
Author: brandonwilliams
Date: Tue Apr 26 22:12:36 2011
New Revision: 1096930

URL: http://svn.apache.org/viewvc?rev=1096930&view=rev
Log:
Mark nodes that were previously down as alive, even without a major
state change.
Patch by brandonwilliams, reviewed by jbellis for CASSANDRA-2565

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

Modified: cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/Gossiper.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/Gossiper.java?rev=1096930&r1=1096929&r2=1096930&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/Gossiper.java (original)
+++ cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/Gossiper.java Tue Apr
26 22:12:36 2011
@@ -695,6 +695,8 @@ public class Gossiper implements IFailur
 	                }
                     else if (logger.isTraceEnabled())
                             logger.trace("Ignoring remote version " + remoteMaxVersion +
" <= " + localMaxVersion + " for " + ep);
+                    if (!localEpStatePtr.isAlive()) // unless of course, it was dead
+                        markAlive(ep, localEpStatePtr);
             	}
                 else
                 {



Mime
View raw message