cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r886332 - /incubator/cassandra/trunk/src/java/org/apache/cassandra/service/WriteResponseHandler.java
Date Wed, 02 Dec 2009 22:41:23 GMT
Author: jbellis
Date: Wed Dec  2 22:41:23 2009
New Revision: 886332

URL: http://svn.apache.org/viewvc?rev=886332&view=rev
Log:
account for bootstrapping pending ranges in replication factor assert.  patch by jbellis for
CASSANDRA-593

Modified:
    incubator/cassandra/trunk/src/java/org/apache/cassandra/service/WriteResponseHandler.java

Modified: incubator/cassandra/trunk/src/java/org/apache/cassandra/service/WriteResponseHandler.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/java/org/apache/cassandra/service/WriteResponseHandler.java?rev=886332&r1=886331&r2=886332&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/java/org/apache/cassandra/service/WriteResponseHandler.java
(original)
+++ incubator/cassandra/trunk/src/java/org/apache/cassandra/service/WriteResponseHandler.java
Wed Dec  2 22:41:23 2009
@@ -43,7 +43,9 @@
 
     public WriteResponseHandler(int responseCount)
     {
-        assert 1 <= responseCount && responseCount <= DatabaseDescriptor.getReplicationFactor()
+        // at most one node per range can bootstrap at a time, and these will be added to
the write until
+        // bootstrap finishes (at which point we no longer need to write to the old ones).
+        assert 1 <= responseCount && responseCount <= 2 * DatabaseDescriptor.getReplicationFactor()
             : "invalid response count " + responseCount;
 
         this.responseCount = responseCount;



Mime
View raw message