HBASE-22378. HBase Canary fails with TableNotFoundException when table deleted during Canary run
Signed-off-by: Xu Cang <xucang@apache.org>
This commit is contained in:
parent
feee97fffb
commit
0797243365
|
@ -1246,7 +1246,7 @@ public final class Canary implements Tool {
|
|||
LOG.debug("Reading list of tables");
|
||||
List<Future<Void>> taskFutures = new LinkedList<>();
|
||||
for (TableDescriptor td: admin.listTableDescriptors()) {
|
||||
if (admin.isTableEnabled(td.getTableName()) &&
|
||||
if (admin.tableExists(td.getTableName()) && admin.isTableEnabled(td.getTableName()) &&
|
||||
(!td.getTableName().equals(writeTableName))) {
|
||||
LongAdder readLatency =
|
||||
regionSink.initializeAndGetReadLatencyForTable(td.getTableName().getNameAsString());
|
||||
|
|
Loading…
Reference in New Issue