Skip to content

Commit dabc60f

Browse files
committed
Revert "Create the start time right before creating the reader to calculate elapsedTime in testPrefetchWithDelay (#6371)"
This reverts commit 15e0905.
1 parent 899743b commit dabc60f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestPrefetch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ public void testPrefetchWithDelay() throws Exception {
359359
HFileContext context = new HFileContextBuilder().withCompression(Compression.Algorithm.GZ)
360360
.withBlockSize(DATA_BLOCK_SIZE).build();
361361
Path storeFile = writeStoreFile("TestPrefetchWithDelay", context);
362-
long startTime = System.currentTimeMillis();
363362
HFile.Reader reader = HFile.createReader(fs, storeFile, cacheConf, true, conf);
363+
long startTime = System.currentTimeMillis();
364364

365365
// Wait for 20 seconds, no thread should start prefetch
366366
Thread.sleep(20000);

0 commit comments

Comments
 (0)