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:
Caroline Zhou 2019-05-08 13:21:05 -07:00 committed by Xu Cang
parent feee97fffb
commit 0797243365
No known key found for this signature in database
GPG Key ID: 8E6C8FEDCA866394
1 changed files with 1 additions and 1 deletions

View File

@ -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());