You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ps...@apache.org on 2023/09/05 10:05:36 UTC

[hbase] branch branch-2.5 updated: HBASE-28059 Use correct units in RegionLoad#getStoreUncompressedSizeMB() (#5382)

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

psomogyi pushed a commit to branch branch-2.5
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.5 by this push:
     new c1e5a554604 HBASE-28059 Use correct units in RegionLoad#getStoreUncompressedSizeMB() (#5382)
c1e5a554604 is described below

commit c1e5a55460444aa6823ed478b60bf1132668b0bf
Author: Charles Connell <ch...@connells.org>
AuthorDate: Tue Sep 5 06:05:30 2023 -0400

    HBASE-28059 Use correct units in RegionLoad#getStoreUncompressedSizeMB() (#5382)
    
    Signed-off-by: Duo Zhang <zh...@apache.org>
    Signed-off-by: Peter Somogyi <ps...@apache.org>
---
 hbase-client/src/main/java/org/apache/hadoop/hbase/RegionLoad.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/RegionLoad.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/RegionLoad.java
index b45171e6495..d61ba86a33e 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/RegionLoad.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/RegionLoad.java
@@ -329,7 +329,7 @@ public class RegionLoad implements RegionMetrics {
    */
   @Deprecated
   public int getStoreUncompressedSizeMB() {
-    return (int) metrics.getUncompressedStoreFileSize().get(Size.Unit.KILOBYTE);
+    return (int) metrics.getUncompressedStoreFileSize().get(Size.Unit.MEGABYTE);
   }
 
   /** Returns the data locality of region in the regionserver. */