From 258b0fdcc2d36e377e84a9790da3bdaad73a3e0e 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 (cherry picked from commit b498efdbc1f4f51d715edcf6b06456f04f518c7f) Change-Id: I87e0594aeb88a46d4f63bb3af5e79cb63e4f46db --- .../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 c08006a7ff7d..ca772bbde471 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 @@ -1705,7 +1705,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,