-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-29145 Table Stats shows store file size as zero always for hbase:meta table #6859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HBASE-29145 Table Stats shows store file size as zero always for hbase:meta table #6859
Conversation
This comment has been minimized.
This comment has been minimized.
| double rSize = load.getStoreFileSize().get(Size.Unit.BYTE); | ||
| if (rSize > 0) { | ||
| fileSize = StringUtils.byteDesc((long) rSize); | ||
| if (totalStoreFileSizeMB == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do we actually fix here? What is the root cause of this problem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
totalStoreFileSizeMB variable is not updated when the table is meta which is causing this issue, for user tables issue not exists.
For meta table there could be multiple replicas, so adding a check that only the first replica size is considerd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, this is under the metaLocation != null condition.
For adding only the first replica size, why not testing j == 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
existing implementation has a check for metaLocation != null, I thought it would be incorrect to depend on the logic of j == 0.
If the primary replica metaLocation can never be null, we can just test for j==0.. I have updated the PR with this change
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
6db7994 to
a0cb08a
Compare
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
…e:meta table (#6859) Signed-off-by: Duo Zhang <zhangduo@apache.org>
…e:meta table (#6859) Signed-off-by: Duo Zhang <zhangduo@apache.org>
No description provided.