Repository: cassandra
Updated Branches:
  refs/heads/trunk 9192e4dff -> 8a5e1cbe2


Fix junit failure for SSTableReaderTest#testOpeningSSTable

Patch by Dinesh Joshi; Reviewed by Chris Lohfink for CASSANDRA-14387


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

Branch: refs/heads/trunk
Commit: 8a5e1cbe293ee7c83efba0d0101ada0a80cfaf00
Parents: 9192e4d
Author: Dinesh A. Joshi <dinesh.jo...@apple.com>
Authored: Mon Apr 16 10:18:22 2018 -0700
Committer: Jeff Jirsa <jji...@apple.com>
Committed: Mon Apr 16 11:37:59 2018 -0700

----------------------------------------------------------------------
 CHANGES.txt                                                      | 1 +
 test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/8a5e1cbe/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 5605a77..0362d01 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 4.0
+ * Fix junit failure for SSTableReaderTest (CASSANDRA-14387)
  * Abstract write path for pluggable storage (CASSANDRA-14118)
  * nodetool describecluster should be more informative (CASSANDRA-13853)
  * Compaction performance improvements (CASSANDRA-14261) 

http://git-wip-us.apache.org/repos/asf/cassandra/blob/8a5e1cbe/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java 
b/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java
index 6f94696..08b1716 100644
--- a/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java
+++ b/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java
@@ -381,7 +381,7 @@ public class SSTableReaderTest
         long bloomModified = Files.getLastModifiedTime(bloomPath).toMillis();
         long summaryModified = 
Files.getLastModifiedTime(summaryPath).toMillis();
 
-        Thread.sleep(TimeUnit.MILLISECONDS.toMillis(10)); // sleep to ensure 
modified time will be different
+        Thread.sleep(TimeUnit.MILLISECONDS.toMillis(1000)); // sleep to ensure 
modified time will be different
 
         // Offline tests
         // check that bloomfilter/summary ARE NOT regenerated
@@ -428,7 +428,7 @@ public class SSTableReaderTest
         summaryModified = Files.getLastModifiedTime(summaryPath).toMillis();
         summaryFile.delete();
 
-        Thread.sleep(TimeUnit.MILLISECONDS.toMillis(10)); // sleep to ensure 
modified time will be different
+        Thread.sleep(TimeUnit.MILLISECONDS.toMillis(1000)); // sleep to ensure 
modified time will be different
         bloomModified = Files.getLastModifiedTime(bloomPath).toMillis();
 
         target = SSTableReader.open(desc, components, store.metadata);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to