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 ea912478e2
commit 8adf6857c7
1 changed files with 4 additions and 1 deletions

View File

@ -359,7 +359,10 @@ public class ScannerCallable extends ClientServiceCallable<Result[]> {
throw ProtobufUtil.handleRemoteException(e); throw ProtobufUtil.handleRemoteException(e);
} }
} catch (IOException e) { } 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; this.scannerId = -1L;
} }