-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDFS-16693. RBF: fix NPE in Quota #4633
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.< 8000 /p>
Already on GitHub? Sign in to your account
Conversation
Thanks @WeisonWei for your contribution. Can you add a UT to reproduce it? If
|
💔 -1 overall
This message was automatically generated. |
@@ -204,7 +204,8 @@ QuotaUsage getGlobalQuota(String path) throws IOException { | |||
* @return {@code true} if path is a mount entry; {@code false} otherwise. | |||
*/ | |||
private boolean isMountEntry(String path) { | |||
return router.getQuotaManager().isMountEntry(path); | |||
return router.isQuotaEnabled() && |
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.
This can be a single line.
@@ -204,7 +204,8 @@ QuotaUsage getGlobalQuota(String path) throws IOException { | |||
* @return {@code true} if path is a mount entry; {@code false} otherwise. | |||
*/ | |||
private boolean isMountEntry(String path) { |
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.
Can we add a unit test?
Description of PR
How was this patch tested?
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?