Skip to content

Commit 499a231

Browse files
HBASE-29145 Table Stats shows store file size as zero always for hbase:meta table (#6859)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
1 parent 6fb6269 commit 499a231

File tree

1 file changed

+4
-0
lines changed
  • hbase-server/src/main/resources/hbase-webapps/master

1 file changed

+4
-0
lines changed

hbase-server/src/main/resources/hbase-webapps/master/table.jsp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,10 @@
378378
double rSize = load.getStoreFileSize().get(Size.Unit.BYTE);
379379
if (rSize > 0) {
380380
fileSize = StringUtils.byteDesc((long) rSize);
381+
// use the primary replica only for the total store file size calculation
382+
if (j == 0) {
383+
totalStoreFileSizeMB += load.getStoreFileSize().get(Size.Unit.MEGABYTE);
384+
}
381385
}
382386
double rSizeUncompressed = load.getUncompressedStoreFileSize().get(Size.Unit.BYTE);
383387
if (rSizeUncompressed > 0) {

0 commit comments

Comments
 (0)