You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2024/10/18 21:12:14 UTC
(hbase) branch branch-3 updated: Create the start time right before creating the reader to calculate elapsedTime in testPrefetchWithDelay (#6371)
This is an automated email from the ASF dual-hosted git repository.
apurtell pushed a commit to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-3 by this push:
new 2b2996d7e4d Create the start time right before creating the reader to calculate elapsedTime in testPrefetchWithDelay (#6371)
2b2996d7e4d is described below
commit 2b2996d7e4d2bdc109994e30ceaa9f425f3e57d1
Author: gvprathyusha6 <70...@users.noreply.github.com>
AuthorDate: Sat Oct 19 02:26:13 2024 +0530
Create the start time right before creating the reader to calculate elapsedTime in testPrefetchWithDelay (#6371)
Signed-off-by: Andrew Purtell <ap...@apache.org>
Signed-off-by: Wellington Chevreuil <wc...@apache.org>
---
.../src/test/java/org/apache/hadoop/hbase/io/hfile/TestPrefetch.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestPrefetch.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestPrefetch.java
index 801b20a4774..0f3d0aee4e5 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestPrefetch.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestPrefetch.java
@@ -359,8 +359,8 @@ public class TestPrefetch {
HFileContext context = new HFileContextBuilder().withCompression(Compression.Algorithm.GZ)
.withBlockSize(DATA_BLOCK_SIZE).build();
Path storeFile = writeStoreFile("TestPrefetchWithDelay", context);
- HFile.Reader reader = HFile.createReader(fs, storeFile, cacheConf, true, conf);
long startTime = System.currentTimeMillis();
+ HFile.Reader reader = HFile.createReader(fs, storeFile, cacheConf, true, conf);
// Wait for 20 seconds, no thread should start prefetch
Thread.sleep(20000);