HBASE-15912. REST module has 2 extent warnings in findbugs.
ScannerResource defines a variable params the is never used. TableResource catches Exception when IOException is thrown.
This commit is contained in:
parent
f4470af95d
commit
4abc602e3b
|
@ -91,7 +91,6 @@ public class ScannerResource extends ResourceBase {
|
|||
spec = new RowSpec(model.getStartRow(), endRow, model.getColumns(), model.getStartTime(),
|
||||
model.getEndTime(), model.getMaxVersions());
|
||||
}
|
||||
MultivaluedMap<String, String> params = uriInfo.getQueryParameters();
|
||||
|
||||
try {
|
||||
Filter filter = ScannerResultGenerator.buildFilterFromModel(model);
|
||||
|
|
|
@ -192,8 +192,8 @@ public class TableResource extends ResourceBase {
|
|||
}
|
||||
int fetchSize = this.servlet.getConfiguration().getInt(Constants.SCAN_FETCH_SIZE, 10);
|
||||
tableScan.setCaching(fetchSize);
|
||||
return new TableScanResource(hTable.getScanner(tableScan), userRequestedLimit);
|
||||
} catch (Exception exp) {
|
||||
return new TableScanResource(hTable.getScanner(tableScan), userRequestedLimit);
|
||||
} catch (IOException exp) {
|
||||
servlet.getMetrics().incrementFailedScanRequests(1);
|
||||
processException(exp);
|
||||
LOG.warn(exp);
|
||||
|
|
Loading…
Reference in New Issue