You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by re...@apache.org on 2020/05/06 11:24:21 UTC

[hbase] branch master updated: HBASE-24336 [Metrics] FSDataInputStream's localBytesRead is wrong (#1667)

This is an automated email from the ASF dual-hosted git repository.

reidchan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/master by this push:
     new c32d18d  HBASE-24336 [Metrics] FSDataInputStream's localBytesRead is wrong (#1667)
c32d18d is described below

commit c32d18d4fb9273323cd424872787a8d146f68ff5
Author: Reid Chan <re...@apache.org>
AuthorDate: Wed May 6 19:24:05 2020 +0800

    HBASE-24336 [Metrics] FSDataInputStream's localBytesRead is wrong (#1667)
    
    Signed-off-by: binlijin <bi...@gmail.com>
---
 .../main/java/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 989d0aa..67bca84 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().