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-23379: Clean Up FSUtil getRegionLocalityMappingFromFS #911
Conversation
💔 -1 overall
This message was automatically generated. |
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.
Please also look at the Checkstyle warning.
} | ||
|
||
// lower the number of threads in case we have very few expected regions | ||
threadPoolSize = Math.min(threadPoolSize, statusList.length); | ||
final int finalThreadPoolSize = Math.min(threadPoolSize, statusList.length); |
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.
Leave the name as threadPoolSize
.
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. Will make requested change. Please note that it's easier to debug when the arguments can be assigned 'final' and not subject to change during the lifespan of the method call.
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.
Ah, haven't seen this one. Agree on the final
topic. Can we revert this one to final int
? A better name would be good.
a7ab813
to
beb785d
Compare
@HorizonNet Thanks for the review!! |
🎊 +1 overall
This message was automatically generated. |
Any other thoughts @HorizonNet ? Thanks! |
No description provided.