HBASE-17211 Add more details in log when UnknownScannerException thrown in ScannerCallable

This commit is contained in:
Yu Li 2016-12-01 01:13:18 +08:00
parent f26b3bf5ba
commit 547d97f5ca
1 changed files with 4 additions and 1 deletions

View File

@ -389,7 +389,10 @@ public class ScannerCallable extends RegionServerCallable<Result[]> {
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;
}