HBASE-23176 delete_all_snapshot does not work with regex (#725)

This commit is contained in:
Karthik Palanisamy 2019-10-17 05:35:56 -07:00 committed by Guangxu Cheng
parent 0043dfebc5
commit 0f910f0c32
2 changed files with 6 additions and 3 deletions

View File

@ -34,7 +34,8 @@ EOF
count = list.size
list.each do |snapshot|
creation_time = Time.at(snapshot.getCreationTime / 1000).to_s
formatter.row([snapshot.getName, snapshot.getTable + ' (' + creation_time + ')'])
formatter.row([snapshot.getName, snapshot.getTableNameAsString +
' (' + creation_time + ')'])
end
puts "\nDelete the above #{count} snapshots (y/n)?" unless count == 0
answer = 'n'
@ -53,7 +54,8 @@ EOF
formatter.header(['SNAPSHOT', 'TABLE + CREATION TIME'])
list.each do |snapshot|
creation_time = Time.at(snapshot.getCreationTime / 1000).to_s
formatter.row([snapshot.getName, snapshot.getTable + ' (' + creation_time + ')'])
formatter.row([snapshot.getName, snapshot.getTableNameAsString +
' (' + creation_time + ')'])
end
end
end

View File

@ -43,7 +43,8 @@ EOF
count = list.size
list.each do |snapshot|
creation_time = Time.at(snapshot.getCreationTime / 1000).to_s
formatter.row([snapshot.getName, snapshot.getTable + ' (' + creation_time + ')'])
formatter.row([snapshot.getName, snapshot.getTableNameAsString +
' (' + creation_time + ')'])
end
puts "\nDelete the above #{count} snapshots (y/n)?" unless count == 0
answer = 'n'