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

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


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

commit 499a231a18463690c8828b9b5a774405d53e1eb3
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 ea907ce8b71..c1628ac4da6 100644
--- a/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
+++ b/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
@@ -378,6 +378,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