cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marc...@apache.org
Subject git commit: Fix KeyCacheTest
Date Fri, 25 Apr 2014 13:21:53 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 4410edf0e -> a4f579422


Fix KeyCacheTest


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

Branch: refs/heads/cassandra-2.1
Commit: a4f5794222f2a69ea4502085f928e3d413dba1d7
Parents: 4410edf
Author: belliottsmith <github@sub.laerad.com>
Authored: Fri Apr 25 15:21:39 2014 +0200
Committer: Marcus Eriksson <marcuse@apache.org>
Committed: Fri Apr 25 15:21:39 2014 +0200

----------------------------------------------------------------------
 test/unit/org/apache/cassandra/db/KeyCacheTest.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/a4f57942/test/unit/org/apache/cassandra/db/KeyCacheTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/db/KeyCacheTest.java b/test/unit/org/apache/cassandra/db/KeyCacheTest.java
index c48a728..ec99fd1 100644
--- a/test/unit/org/apache/cassandra/db/KeyCacheTest.java
+++ b/test/unit/org/apache/cassandra/db/KeyCacheTest.java
@@ -162,6 +162,8 @@ public class KeyCacheTest extends SchemaLoader
         for (SSTableReader reader : readers)
             reader.releaseReference();
 
+        while (StorageService.tasks.getActiveCount() > 0);
+
         // after releasing the reference this should drop to 2
         assertKeyCacheSize(2, KEYSPACE1, COLUMN_FAMILY1);
 


Mime
View raw message