-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-16076. Avoid using slow DataNodes for reading by sorting locations #3117
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. |
|
Rebased to the latest commit. |
|
💔 -1 overall
This message was automatically generated. |
|
Those failed unit tests work fine locally. |
|
Hi @tasanuma @jojochuang @goiri @Hexiaoqiao @ayushtkn , could you please help to review the code? Thanks. |
tasanuma
left a comment
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.
@tomscut Seems pretty good. I left some very minor comments. The others look good to me.
...p-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestSortLocatedBlock.java
Outdated
Show resolved
Hide resolved
...p-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestSortLocatedBlock.java
Outdated
Show resolved
Hide resolved
|
💔 -1 overall
This message was automatically generated. |
|
Thanks @tasanuma for your second review. These failed UTs work fine locally. |
|
Merged it. Thanks for your contribution, @tomscut. |
JIRA: HDFS-16076
After sorting the expected location list will be: live -> slow -> stale -> staleAndSlow -> entering_maintenance -> decommissioned. This reduces the probability that slow nodes will be used for reading.