-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Hbase 26275, update error message when executing deleteall with ROWPREFIXFILTER in meta table #4205
Conversation
merge apache/hbase
… table hbase:meta
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
@@ -243,7 +243,7 @@ def _deleteall_internal(row, column = nil, | |||
args = {}, all_version = true) | |||
# delete operation doesn't need read permission. Retaining the read check for | |||
# meta table as a part of HBASE-5837. | |||
if is_meta_table? | |||
if is_meta_table? and !(row.is_a?(Hash) and row.key?('ROWPREFIXFILTER')) |
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.
It's dangerous to delete rows in meta table by 'ROWPREFIXFILTER', right? If the rowPrefix matches some rows unexpected, the meta data will be deleted unexpected. I think maybe this is why the origin design seperated meta table here.
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.
Yes, I have this concen too. Let me fix the error message?
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.
Of course, you can try to make the descriptions more clearly.
🎊 +1 overall
This message was automatically generated. |
Hi, @xicm , you can make a proper title for the issue, thanks. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
…FIXFILTER in meta table (#4205) Signed-off-by: Xiaolin Ha <[email protected]>
…FIXFILTER in meta table (#4205) Signed-off-by: Xiaolin Ha <[email protected]>
…FIXFILTER in meta table (#4205) Signed-off-by: Xiaolin Ha <[email protected]>
…FIXFILTER in meta table (apache#4205) Signed-off-by: Xiaolin Ha <[email protected]> (cherry picked from commit 8d161e4) Change-Id: I11d1ab3da521cb11b99813ab752a4a7a6be6bc0d
I'm not sure if it's reasonable and safe for allowing ROWPREFIXFILTER in deleteAll;
If not, we should raise a clear error message.