-
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-16543. Keep default value of dfs.datanode.directoryscan.throttle.limit.ms.pe… #4178
base: trunk
Are you sure you want to change the base?
Conversation
a19e5d7
to
cd33f50
Compare
💔 -1 overall
This message was automatically generated. |
cd33f50
to
d69b764
Compare
🎊 +1 overall
This message was automatically generated. |
@@ -885,7 +885,7 @@ | |||
|
|||
<property> | |||
<name>dfs.datanode.directoryscan.throttle.limit.ms.per.sec</name> | |||
<value>1000</value> | |||
<value>-1</value> |
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. But the comment 1000 is the default setting
also needs to update.
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 Thanks for your review. The description is updated.
💔 -1 overall
This message was automatically generated. |
cdc40e5
to
264ea72
Compare
💔 -1 overall
This message was automatically generated. |
264ea72
to
ff68d7e
Compare
💔 -1 overall
This message was automatically generated. |
ff68d7e
to
5765a23
Compare
💔 -1 overall
This message was automatically generated. |
5765a23
to
6b01e0e
Compare
💔 -1 overall
This message was automatically generated. |
LGTM. |
@tomscut Thanks for your review. The failed UT seems not related, it runs successful locally on my computer. |
WARN datanode.DirectoryScanner (DirectoryScanner.java:<init>(300)) - dfs.datanode.directoryscan.throttle.limit.ms.per.sec set to value above 1000 ms/sec. Assuming default value of -1
A warning log like above will be printed when datanode is starting. The reason of that is the default value of
dfs.datanode.directoryscan.throttle.limit.ms.per.sec
is 1000 in hdfs-site.xml, and is -1 inDFS_DATANODE_DIRECTORYSCAN_THROTTLE_LIMIT_MS_PER_SEC_DEFAULT
. We should try to keep it consistent, and value -1 looks is better to 1000.The code segment that print the warning log: