This is an automated email from the ASF dual-hosted git repository.
chandra 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 631871ee2e3 HBASE-29145 Table Stats shows store file size as zero
always for hbase:meta table (#6859)
631871ee2e3 is described below
commit 631871ee2e3b31a77a4ddc7e90c24a7b1e57d14b
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 58442277504..c34961fe715 100644
--- a/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
+++ b/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
@@ -381,6 +381,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) {