-
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-16858. Dynamically adjust max slow disks to exclude. #5180
Conversation
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_MAX_NUM_BLOCKS_TO_LOG_KEY; | ||
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_DATANODE_METRICS_LOGGER_PERIOD_SECONDS_DEFAULT; | ||
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_DATANODE_METRICS_LOGGER_PERIOD_SECONDS_KEY; | ||
import static org.apache.hadoop.hdfs.DFSConfigKeys.*; |
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.
avoid *
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_DATANODE_MIN_OUTLIER_DETECTION_DISKS_KEY; | ||
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_DATANODE_OUTLIERS_REPORT_INTERVAL_KEY; | ||
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_DATANODE_SLOWDISK_LOW_THRESHOLD_MS_KEY; | ||
import static org.apache.hadoop.hdfs.DFSConfigKeys.*; |
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.
avoid *
assertEquals(String.format("expect %s is not configured", | ||
DFS_DATANODE_MIN_OUTLIER_DETECTION_DISKS_KEY), null, | ||
dn.getConf().get(DFS_DATANODE_MIN_OUTLIER_DETECTION_DISKS_KEY)); | ||
assertEquals(String.format("expect %s is not configured", | ||
DFS_DATANODE_SLOWDISK_LOW_THRESHOLD_MS_KEY), null, | ||
dn.getConf().get(DFS_DATANODE_SLOWDISK_LOW_THRESHOLD_MS_KEY)); | ||
assertEquals(String.format("expect %s is not configured", | ||
DFS_DATANODE_MAX_SLOWDISKS_TO_EXCLUDE_KEY), null, |
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.
indentation
@dingshun3016 Thank you very much for your contribution, but we need to fix some checkstyle issues. |
@slfan1989 Thank you for your review,I have fixed it. |
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.
+1, pending Jenkins CI. Thank you, @dingshun3016 .
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
@cnauroth @slfan1989 could you please merge this PR? Thanks. |
@dingshun3016 Can we rebase again? Let's see the compilation result of jenkins. |
💔 -1 overall
This message was automatically generated. |
|
bfb87c4
to
684104b
Compare
💔 -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 fix checkstyle warning and failed unit test.
💔 -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.
LGTM.
Thanks @dingshun3016 for your contribution! Thanks @cnauroth and @slfan1989 for your review! |
Reviewed-by: Chris Nauroth <[email protected]> Reviewed-by: slfan1989 <[email protected]> Signed-off-by: Tao Li <[email protected]>
JIRA: HDFS-16858.
In large clusters, rolling restart datanodes takes long time. We can make slow disks parameters in datanode reconfigurable to facilitate cluster operation and maintenance. Some parameters related to slow disks have been supported in HDFS-16397. Reconfig slow disk parameters for datanode, but I found that there are still some parameters that need