From 547d97f5ca4b00b156c89034e01156928023bc9d Mon Sep 17 00:00:00 2001 From: Yu Li Date: Thu, 1 Dec 2016 01:13:18 +0800 Subject: [PATCH] HBASE-17211 Add more details in log when UnknownScannerException thrown in ScannerCallable --- .../java/org/apache/hadoop/hbase/client/ScannerCallable.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ScannerCallable.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ScannerCallable.java index bde28631f33..2dee7ceaa54 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ScannerCallable.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ScannerCallable.java @@ -389,7 +389,10 @@ public class ScannerCallable extends RegionServerCallable { throw ProtobufUtil.getRemoteException(se); } } catch (IOException e) { - LOG.warn("Ignore, probably already closed", e); + TableName table = getTableName(); + String tableDetails = (table == null) ? "" : (" on table: " + table.getNameAsString()); + LOG.warn("Ignore, probably already closed. Current scan: " + getScan().toString() + + tableDetails, e); } this.scannerId = -1L; }