You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by xu...@apache.org on 2019/05/13 19:19:58 UTC

[hbase] branch branch-1 updated: HBASE-22378. HBase Canary fails with TableNotFoundException when table deleted during Canary run

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

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


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

commit 07b31d874f857ae7d7a42e4c585b57a3672168e8
Author: Caroline Zhou <ca...@salesforce.com>
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 <xu...@apache.org>
---
 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 e2d5919..073df68 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
@@ -1175,7 +1175,7 @@ public final class Canary implements Tool {
       }
       List<Future<Void>> taskFutures = new LinkedList<>();
       for (HTableDescriptor table : admin.listTables()) {
-        if (admin.isTableEnabled(table.getTableName())
+        if (admin.tableExists(table.getTableName()) && admin.isTableEnabled(table.getTableName())
             && (!table.getTableName().equals(writeTableName))) {
           AtomicLong readLatency = regionSink.initializeAndGetReadLatencyForTable(table.getNameAsString());
           taskFutures.addAll(Canary.sniff(admin, sink, table, executor, taskType, this.rawScanEnabled, readLatency));