-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-28105 NPE in QuotaCache if Table is dropped from cluster #5426
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
Conversation
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
bbeaudreault
left a comment
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.
I think we should probably remove the tableName from the tableMachineQuotaFactors in this case. Nothing else seems to cause entries to be removed from that map, and it may have outdated factors that mess with the user quotas.
hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/QuotaCache.java
Show resolved
Hide resolved
Are you referring to If so, I think the outdated tableName might be removed the next time when the cache gets updated in this function. Not sure whether we still need to remove it explicitly in |
No, this method is populating a map called |
|
Make sense. I have updated the commit to remove the dropped tableName from tableMachineQuotaFactors. Is there any other place you suggest me to modify? |
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
bbeaudreault
left a comment
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.
@hanke580 It looks good but can you run mvn spotless:apply to fix formatting?
|
@bbeaudreault Certainly! I have fixed the format problem. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
bbeaudreault
left a comment
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.
Unit test failure is unrelated. LGTM, thanks for the contribution!
Signed-off-by: Bryan Beaudreault <[email protected]>
Signed-off-by: Bryan Beaudreault <[email protected]>
Signed-off-by: Bryan Beaudreault <[email protected]>
Signed-off-by: Bryan Beaudreault <[email protected]>
…rom cluster (apache#5426) Signed-off-by: Bryan Beaudreault <[email protected]>
…e#5426) Signed-off-by: Bryan Beaudreault <[email protected]>
…e#5426) Signed-off-by: Bryan Beaudreault <[email protected]> (cherry picked from commit 897fcf8) Change-Id: Ided23c7dff843daaf4c74b1459e95640f226b999
https://issues.apache.org/jira/browse/HBASE-28105
Avoid NPE by making sure the table exists in the latest metadata.