This is an automated email from the ASF dual-hosted git repository.
chandra pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push:
new 3779a6ed66c HBASE-29145 Table Stats shows store file size as zero
always for hbae:meta table (#6716)
3779a6ed66c is described below
commit 3779a6ed66cbfa91f4e7ca7da2bf550c36399468
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 82cfd415cd0..d88d968e199 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) {