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:49:42 UTC

[hbase] branch branch-1 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 branch-1
in repository https://gitbox.apache.org/repos/asf/hbase.git


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

commit febf15f1ea99e71a4c16c4cedd0882b68eac1b40
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 f14da01..438f555 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
@@ -238,7 +238,7 @@ public class FSDataInputStreamWrapper {
         readStatistics.totalBytesRead += hdfsDataInputStream.getReadStatistics().
           getTotalBytesRead();
         readStatistics.totalLocalBytesRead += hdfsDataInputStream.getReadStatistics().
-          getTotalBytesRead();
+          getTotalLocalBytesRead();
         readStatistics.totalShortCircuitBytesRead += hdfsDataInputStream.getReadStatistics().
           getTotalShortCircuitBytesRead();
         readStatistics.totalZeroCopyBytesRead += hdfsDataInputStream.getReadStatistics().