From c32d18d4fb9273323cd424872787a8d146f68ff5 Mon Sep 17 00:00:00 2001 From: Reid Chan Date: Wed, 6 May 2020 19:24:05 +0800 Subject: [PATCH] HBASE-24336 [Metrics] FSDataInputStream's localBytesRead is wrong (#1667) Signed-off-by: binlijin --- .../org/apache/hadoop/hbase/io/FSDataInputStreamWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/FSDataInputStreamWrapper.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/FSDataInputStreamWrapper.java index 989d0aab2e6..67bca846521 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/FSDataInputStreamWrapper.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/FSDataInputStreamWrapper.java @@ -256,7 +256,7 @@ public class FSDataInputStreamWrapper implements Closeable { readStatistics.totalBytesRead += hdfsDataInputStream.getReadStatistics(). getTotalBytesRead(); readStatistics.totalLocalBytesRead += hdfsDataInputStream.getReadStatistics(). - getTotalBytesRead(); + getTotalLocalBytesRead(); readStatistics.totalShortCircuitBytesRead += hdfsDataInputStream.getReadStatistics(). getTotalShortCircuitBytesRead(); readStatistics.totalZeroCopyBytesRead += hdfsDataInputStream.getReadStatistics().