-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
HDFS-17243. Add the parameter storage type for getBlocks method #6238
Conversation
12e351b
to
1e1cd0f
Compare
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Hi @Hexiaoqiao @ayushtkn @ZanderXu @zhangshuyan0 |
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.
LGTM.
Thanks @tomscut for your review. |
LGTM. +1 from my side. |
💔 -1 overall
This message was automatically generated. |
Thanks @Hexiaoqiao for your review. |
Test failures seems unrelated. |
Committed to trunk. Thanks for your work @haiyang1987 @tomscut @Hexiaoqiao . |
Thanks @Hexiaoqiao @zhangshuyan0 @tomscut for you review and merge it. |
…he#6238). Contributed by Haiyang Hu. Reviewed-by: He Xiaoqiao <[email protected]> Reviewed-by: Tao Li <[email protected]> Signed-off-by: Shuyan Zhang <[email protected]>
Description of PR
When Balancer is running, it is found that there are many logs, such as
INFO balancer.Dispatcher (Dispatcher.java:markMovedIfGoodBlock(306)) - No striped internal block on source xxx:50010:SSD, block blk_-xxx_xxx size=982142783. Skipping.
these logs show that Balancer cannot to balancer SSD type source, and it causes that Balancer will frequently get blocks from NN through getBlocks RPC.
The main reason is the storage type in the current Source is SSD, but now getBlocks obtains all list of blocks belonging to datanode, so need add the parameter storage type for getBlocks method