mirror of https://github.com/apache/cassandra
Fix junit failure for SSTableReaderTest#testOpeningSSTable
Patch by Dinesh Joshi; Reviewed by Chris Lohfink for CASSANDRA-14387
This commit is contained in:
parent
9192e4dff3
commit
8a5e1cbe29
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue