-
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-17328. DiskBalancer should not computeNodeDensity every time when addVolume. #6422
base: trunk
Are you sure you want to change the base?
Conversation
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
63b8cc2
to
0c6e45a
Compare
0c6e45a
to
d4acfac
Compare
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
@Hexiaoqiao @tomscut @haiyang1987 Sir, could you please help me review this PR when you have free time? Thanks. |
💔 -1 overall
This message was automatically generated. |
TestDecommission and TestDecommissionWithBackoffMonitor are all timeout. |
...src/main/java/org/apache/hadoop/hdfs/server/diskbalancer/datamodel/DiskBalancerDataNode.java
Outdated
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
Description of PR
When we call DiskBalancerDataNode#addVolume method, it will computeNodeDensity every time. That is unnecessary. We only need to compute NodeDensity when all volumes were added. This can improve the speed of report command.