cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject svn commit: r1185760 - /cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/db/HintedHandOffManager.java
Date Tue, 18 Oct 2011 17:15:56 GMT
Author: brandonwilliams
Date: Tue Oct 18 17:15:55 2011
New Revision: 1185760

URL: http://svn.apache.org/viewvc?rev=1185760&view=rev
Log:
add comment to explain 3375

Modified:
    cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/db/HintedHandOffManager.java

Modified: cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/db/HintedHandOffManager.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/db/HintedHandOffManager.java?rev=1185760&r1=1185759&r2=1185760&view=diff
==============================================================================
--- cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/db/HintedHandOffManager.java
(original)
+++ cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/db/HintedHandOffManager.java
Tue Oct 18 17:15:55 2011
@@ -236,6 +236,7 @@ public class HintedHandOffManager implem
             // sleep a random amount to stagger handoff delivery from different replicas.
             // (if we had to wait, then gossiper randomness took care of that for us already.)
             if (waited == 0) {
+                // use a 'rounded' sleep interval because of a strange bug with windows:
CASSANDRA-3375
                 int sleep = FBUtilities.threadLocalRandom().nextInt(2000) * 30;
                 logger_.debug("Sleeping {}ms to stagger hint delivery", sleep);
                 Thread.sleep(sleep);



Mime
View raw message