cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jasobr...@apache.org
Subject [04/10] cassandra git commit: fix flakiness in HintsBufferPoolTest
Date Tue, 13 Dec 2016 00:47:22 GMT
fix flakiness in HintsBufferPoolTest

patch by aweisberg; reviewed by jasobrown for CASSANDRA-12894


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/11601e4f
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/11601e4f
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/11601e4f

Branch: refs/heads/trunk
Commit: 11601e4f407a26e84eb5deb815ad27f97d4b9939
Parents: 7f668c6
Author: Ariel Weisberg <aweisberg@apple.com>
Authored: Mon Nov 28 18:39:34 2016 -0500
Committer: Jason Brown <jasedbrown@gmail.com>
Committed: Mon Dec 12 16:42:22 2016 -0800

----------------------------------------------------------------------
 test/unit/org/apache/cassandra/hints/HintsBufferPoolTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/11601e4f/test/unit/org/apache/cassandra/hints/HintsBufferPoolTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/hints/HintsBufferPoolTest.java b/test/unit/org/apache/cassandra/hints/HintsBufferPoolTest.java
index 3fb912e..7c8d0be 100644
--- a/test/unit/org/apache/cassandra/hints/HintsBufferPoolTest.java
+++ b/test/unit/org/apache/cassandra/hints/HintsBufferPoolTest.java
@@ -64,7 +64,7 @@ public class HintsBufferPoolTest
         });
         blocked.start();
 
-        Util.spinAssertEquals(State.WAITING, () -> blocked.getState(), 1);
+        Util.spinAssertEquals(true, () -> blockedOnBackpressure, 60);
 
         while (blocked.isAlive())
             if (!returnedBuffers.isEmpty())


Mime
View raw message