This is an automated email from the ASF dual-hosted git repository.

xucang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/master by this push:
     new 0797243  HBASE-22378. HBase Canary fails with TableNotFoundException 
when table deleted during Canary run
0797243 is described below

commit 0797243365f53a80dcdbc1c1e5514e6b1ae15ee6
Author: Caroline Zhou <[email protected]>
AuthorDate: Wed May 8 13:21:05 2019 -0700

    HBASE-22378. HBase Canary fails with TableNotFoundException when table 
deleted during Canary run
    
    Signed-off-by: Xu Cang <[email protected]>
---
 hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java
index cf98d4a..9177bc0 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java
@@ -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());

Reply via email to