cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1000404 - /cassandra/trunk/src/java/org/apache/cassandra/service/WriteResponseHandler.java
Date Thu, 23 Sep 2010 10:58:44 GMT
Author: jbellis
Date: Thu Sep 23 10:58:44 2010
New Revision: 1000404

URL: http://svn.apache.org/viewvc?rev=1000404&view=rev
Log:
include RF in assertion error message.  patch by jbellis

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

Modified: cassandra/trunk/src/java/org/apache/cassandra/service/WriteResponseHandler.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/service/WriteResponseHandler.java?rev=1000404&r1=1000403&r2=1000404&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/service/WriteResponseHandler.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/service/WriteResponseHandler.java Thu Sep
23 10:58:44 2010
@@ -101,7 +101,8 @@ public class WriteResponseHandler extend
         // 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 <= blockFor && blockFor <= 2 * DatabaseDescriptor.getReplicationFactor(table)
-            : "invalid response count " + blockFor;
+            : String.format("invalid response count %d for replication factor %d",
+                            blockFor, DatabaseDescriptor.getReplicationFactor(table));
         return blockFor;
     }
 



Mime
View raw message