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

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


The following commit(s) were added to refs/heads/branch-2.6 by this push:
     new a4c9922f7d4 HBASE-29145 Table Stats shows store file size as zero 
always for hbase:meta table (#6859)
a4c9922f7d4 is described below

commit a4c9922f7d4b80f360dfffdaa257bf83943b1907
Author: Chandra Sekhar K <[email protected]>
AuthorDate: Sat Nov 22 16:39:31 2025 +0530

    HBASE-29145 Table Stats shows store file size as zero always for hbase:meta 
table (#6859)
    
    Signed-off-by: Duo Zhang <[email protected]>
---
 hbase-server/src/main/resources/hbase-webapps/master/table.jsp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hbase-server/src/main/resources/hbase-webapps/master/table.jsp 
b/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
index 0a61488cf67..ba05905dcc1 100644
--- a/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
+++ b/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
@@ -380,6 +380,10 @@
                         double rSize = 
load.getStoreFileSize().get(Size.Unit.BYTE);
                         if (rSize > 0) {
                           fileSize = StringUtils.byteDesc((long) rSize);
+                          // use the primary replica only for the total store 
file size calculation
+                          if (j == 0) {
+                            totalStoreFileSizeMB += 
load.getStoreFileSize().get(Size.Unit.MEGABYTE);
+                          }
                         }
                         double rSizeUncompressed = 
load.getUncompressedStoreFileSize().get(Size.Unit.BYTE);
                         if (rSizeUncompressed > 0) {

Reply via email to