HBASE-11667 Comment ClientScanner logic for NSREs.

This commit is contained in:
Lars Hofhansl 2014-08-06 11:28:11 -07:00
parent 6dee406bf3
commit 25e6baee42
1 changed files with 7 additions and 0 deletions

View File

@ -415,7 +415,14 @@ public class ClientScanner extends AbstractClientScanner {
}
// Else, its signal from depths of ScannerCallable that we need to reset the scanner.
if (this.lastResult != null) {
// The region has moved. We need to open a brand new scanner at
// the new location.
// Reset the startRow to the row we've seen last so that the new
// scanner starts at the correct row. Otherwise we may see previously
// returned rows again.
// (ScannerCallable by now has "relocated" the correct region)
this.scan.setStartRow(this.lastResult.getRow());
// Skip first row returned. We already let it out on previous
// invocation.
skipFirst = true;