Skip to content

Commit a0cb08a

Browse files
HBASE-29145 Table Stats shows store file size as zero always for hbase:meta table
1 parent 3db9628 commit a0cb08a

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
@@ -356,6 +356,10 @@
356356
double rSize = load.getStoreFileSize().get(Size.Unit.BYTE);
357357
if (rSize > 0) {
358358
fileSize = StringUtils.byteDesc((long) rSize);
359+
// use the primary replica only for the total store file size calculation
360+
if (j == 0) {
361+
totalStoreFileSizeMB += load.getStoreFileSize().get(Size.Unit.MEGABYTE);
362+
}
359363
}
360364
double rSizeUncompressed = load.getUncompressedStoreFileSize().get(Size.Unit.BYTE);
361365
if (rSizeUncompressed > 0) {

0 commit comments

Comments
 (0)