-
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-16885. Fix TestHdfsConfigFields#testCompareConfigurationClassAgainstXml failed #5283
Conversation
💔 -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.
@haiyang1987 , thanks a lot for fixing the bug! Please see the two comments inlined.
<value>1000</value> | ||
<description> | ||
If an external AccessControlEnforcer runs for a long time to check permission with the FSnamesystem lock, | ||
we will print a WARN message when it happens. This sets how long must be run for logging to occur. |
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.
Change we will print a WARN message when it happens
to print a WARN log message
.
@@ -1240,6 +1240,15 @@ | |||
</description> | |||
</property> | |||
|
|||
<property> | |||
<name>dfs.namenode.access-control-enforcer-reporting-threshold-ms</name> |
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 move this right below dfs.namenode.read-lock-reporting-threshold-ms
since they are related.
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 resolution of the other review feedback.
@haiyang1987 , thank you for the patch. Sorry we missed this in HDFS-16881.
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 the change looks good.
💔 -1 overall
This message was automatically generated. |
There are some test failures but they are not related to this change. |
Thanks @haiyang1987 for working on this! |
Description of PR
HDFS-16885
A new parameter "dfs.namenode.access-control-enforcer-reporting-threshold-ms" was introduced in HDFS-16881.
However, this parameter was not added to hdfs-default.xml, cause run TestHdfsConfigFields#testCompareConfigurationClassAgainstXml failed.