From b498efdbc1f4f51d715edcf6b06456f04f518c7f Mon Sep 17 00:00:00 2001 From: xiaozhang0319 <58984599+xiaozhang0319@users.noreply.github.com> Date: Tue, 21 Jun 2022 00:13:33 +0800 Subject: [PATCH] HBASE-27099 The log printing fspread/fsread cost time unit should be milliseconds (#4500) Co-authored-by: xiaozhang Signed-off-by: Duo Zhang --- .../main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java index ca7de3c2eed5..d054e83ac19f 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java @@ -1709,7 +1709,7 @@ protected HFileBlock readBlockDataInternal(FSDataInputStream is, long offset, if (!fileContext.isCompressedOrEncrypted()) { hFileBlock.sanityCheckUncompressed(); } - LOG.trace("Read {} in {} ns", hFileBlock, duration); + LOG.trace("Read {} in {} ms", hFileBlock, duration); // Cache next block header if we read it for the next time through here. if (nextBlockOnDiskSize != -1) { cacheNextBlockHeader(offset + hFileBlock.getOnDiskSizeWithHeader(), onDiskBlock,