-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-26340 - fix RegionSizeCalculator getLEngth to bytes instead of … #3737
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
Conversation
🎊 +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. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Sorry I did not get this change. I think the calculated values will be the same before and after this PR. Especially as the tests are not updated, i.e.: hbase/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestRegionSizeCalculator.java Lines 70 to 72 in 6e63933
Do I miss something? |
I assumed Size class method get(Unit unit) will return the value in the given unit, but turns out it has just the same conversation basically, and we set it in MB so while we do get Byte unit back, it converts again from MB, but this time in Size class. We set regionszie in RegionMetricsBuilder: But this is a much bigger impact change then I originally anticipated. I will write to dev list. |
There is also an ongoing conversation on dev list, meanwhile I'll have an update for this PR soon as to store the real Byte value and not a rounded MB conversion. |
Closed this as I started fresh (force pushed auto-closed it to be precise) |
…converting from MB
Change-Id: I1bed7cf35feffeb8991c92b327c26cdc9e2c17e7