Skip to content

Commit 631871e

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 94fd568 commit 631871e

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
@@ -381,6 +381,10 @@
381381
double rSize = load.getStoreFileSize().get(Size.Unit.BYTE);
382382
if (rSize > 0) {
383383
fileSize = StringUtils.byteDesc((long) rSize);
384+
// use the primary replica only for the total store file size calculation
385+
if (j == 0) {
386+
totalStoreFileSizeMB += load.getStoreFileSize().get(Size.Unit.MEGABYTE);
387+
}
384388
}
385389
double rSizeUncompressed = load.getUncompressedStoreFileSize().get(Size.Unit.BYTE);
386390
if (rSizeUncompressed > 0) {

0 commit comments

Comments
 (0)