-
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-23176 delete_all_snapshot does not work with regex #725
Conversation
I am really not sure if we need testcase. I added general test case for this issue. Just realized, similar testcase exists already. Testcase will pass even without this fix. The reason I could not add testcase because delete_all_snapshot.rb#command(regex) accept only one argument and second argument will get it from user ('y/n') at runtime, for confirming delete. But here I don't think I can pass argument at runtime. |
I tried passing args at runtime but test case hungs ever. I don't think we need test case for init script. |
💔 -1 overall
This message was automatically generated. |
Removed this test-case, as similar functionality test exist already. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Also need to be modified here |
Thank you very much @guangxuCheng for checking this. There are 3 commits here, the first commit changes for delete_all_snapshot.rb. |
hbase/hbase-shell/src/main/ruby/shell/commands/delete_all_snapshot.rb Lines 31 to 58 in 0043dfe
@karthikhw There are two places in delete_all_snapshot.rb (L37 and L56) that need to be modified, but you only modified one of them. |
Thank you @guangxuCheng highlighting missing one. Sorry, I somehow missed it. |
🎊 +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.
+1
Delete_all_snapshot.rb is using deprecated method SnapshotDescription#getTable but this method is already removed in 3.0.x.