Skip to content

Commit 3994500

Browse files
author
Prathyusha Garre
committed
Create the start time right before creating the reader to calculate elapsedTime in testPrefetchWithDelay
1 parent a8fbac6 commit 3994500

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-
HFile.Reader reader = HFile.createReader(fs, storeFile, cacheConf, true, conf);
363362
long startTime = System.currentTimeMillis();
363+
HFile.Reader reader = HFile.createReader(fs, storeFile, cacheConf, true, conf);
364364

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

0 commit comments

Comments
 (0)