Description
The below code (SnapshotScanner.java) is ignoring the boolean value returning from the nextRaw method
public Result next() throws IOException { values.clear(); scanner.nextRaw(values); statisticsCollector.collectStatistics(values); if (values.isEmpty()) { //we are done return null; } return Result.create(values); }
Below is the comment in nextRaw method of Hbase
/** * Grab the next row's worth of values. This is a special internal method to be called from * coprocessor hooks to avoid expensive setup. Caller must set the thread's readpoint, start and * close a region operation, an synchronize on the scanner object. Caller should maintain and * update metrics. See {@link #nextRaw(List, ScannerContext)} * @param result return output array * @return true if more rows exist after this one, false if scanner is done * @throws IOException e */ boolean nextRaw(List<Cell> result) throws IOException;
Attachments
Issue Links
- links to