Uh oh!
There was an error while loading. Please reload this page.
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. |
karthikhw
commented
Oct 15, 2019
I tried passing args at runtime but test case hungs ever. I don't think we need test case for init script. |
Apache-HBase
commented
Oct 15, 2019
💔 -1 overall
This message was automatically generated. |
karthikhw
commented
Oct 15, 2019
Removed this test-case, as similar functionality test exist already. |
Apache-HBase
commented
Oct 15, 2019
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Oct 15, 2019
🎊 +1 overall
This message was automatically generated. |
guangxuCheng
commented
Oct 16, 2019
Also need to be modified here |
karthikhw
commented
Oct 16, 2019
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. |
karthikhw
commented
Oct 17, 2019
Thank you @guangxuCheng highlighting missing one. Sorry, I somehow missed it. |
Apache-HBase
commented
Oct 17, 2019
🎊 +1 overall
This message was automatically generated. |
Delete_all_snapshot.rb is using deprecated method SnapshotDescription#getTable but this method is already removed in 3.0.x.