-
Notifications
You must be signed in to change notification settings - Fork 3.3k
HBASE-29285 Use DataNode port as favored-node port to make bulk load … #6962
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
base: master
Are you sure you want to change the base?
HBASE-29285 Use DataNode port as favored-node port to make bulk load … #6962
Conversation
🎊 +1 overall
This message was automatically generated. |
🎊 +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.
Nice catch, thanks for the fix, looks good to me. 👍
Is it possible to add a unit test for this? 🤔
thanks for the review, let me check if its possible to add a UT for this. |
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.
I don't think explicitly setting the DN port here makes any difference. This is already done down the line in the HDFS stream classes, it only uses the hostname of the RS hosting the region for the file and then adjust to the DN port. The hdfs write wouldn't work at all if it was not doing it at some point. In other words, the DN port you are setting here would be ignored in the same way as the RS port.
…follow locality