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

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


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

commit a1348ba9d71d87cac1477084d4dd6ff95a5d74ad
Author: Chandra Sekhar K <[email protected]>
AuthorDate: Sat Nov 22 16:35:05 2025 +0530

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

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 f55d1dd8170..9a6aec049a7 100644
--- a/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
+++ b/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
@@ -377,7 +377,11 @@
                         writeReq = String.format("%,1d", 
load.getWriteRequestCount());
                         double rSize = 
load.getStoreFileSize().get(Size.Unit.BYTE);
                         if (rSize > 0) {
-                        fileSize = StringUtils.byteDesc((long) rSize);
+                          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