HBASE-23176 delete_all_snapshot does not work with regex (#725)
This commit is contained in:
parent
0043dfebc5
commit
0f910f0c32
|
@ -34,7 +34,8 @@ EOF
|
||||||
count = list.size
|
count = list.size
|
||||||
list.each do |snapshot|
|
list.each do |snapshot|
|
||||||
creation_time = Time.at(snapshot.getCreationTime / 1000).to_s
|
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
|
||||||
puts "\nDelete the above #{count} snapshots (y/n)?" unless count == 0
|
puts "\nDelete the above #{count} snapshots (y/n)?" unless count == 0
|
||||||
answer = 'n'
|
answer = 'n'
|
||||||
|
@ -53,7 +54,8 @@ EOF
|
||||||
formatter.header(['SNAPSHOT', 'TABLE + CREATION TIME'])
|
formatter.header(['SNAPSHOT', 'TABLE + CREATION TIME'])
|
||||||
list.each do |snapshot|
|
list.each do |snapshot|
|
||||||
creation_time = Time.at(snapshot.getCreationTime / 1000).to_s
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -43,7 +43,8 @@ EOF
|
||||||
count = list.size
|
count = list.size
|
||||||
list.each do |snapshot|
|
list.each do |snapshot|
|
||||||
creation_time = Time.at(snapshot.getCreationTime / 1000).to_s
|
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
|
||||||
puts "\nDelete the above #{count} snapshots (y/n)?" unless count == 0
|
puts "\nDelete the above #{count} snapshots (y/n)?" unless count == 0
|
||||||
answer = 'n'
|
answer = 'n'
|
||||||
|
|
Loading…
Reference in New Issue