-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-29835: Fix typos and inconsistencies in CacheAwareLoadBalancer #7644
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
| LOG.debug( | ||
| "Region {} not moved from {} to {} with current cache ratio {} and old cache ratio {}", | ||
| cluster.regions[regionIndex], cluster.servers[currentServerIndex], | ||
| cluster.servers[oldServerIndex], cacheRatioOnCurrentServer, |
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.
Note that it would log current server ratio twice.
| "Region {} moved from {} to {} as region cache ratio {} is better than the current " | ||
| + "cache ratio {}", | ||
| cluster.regions[regionIndex].getEncodedName(), cluster.servers[currentServerIndex], | ||
| cluster.servers[oldServerIndex], cacheRatioOnCurrentServer, |
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.
Note that it would log current ratio twice
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
HBASE-28804 also introduced a
DecimalFormatwhich is only used in a debug statement but instantiated once per call to a method. It is also inconsistently used.I decided to remove it entirely in my PR. Another option would be to introduce it everywhere. I'm fine either way.