HBASE-10179. HRegionServer underreports readRequestCounts by 1 under certain conditions (Perry Trolard)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1551794 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3e84d6e6b1
commit
4fb0da7f84
|
@ -3135,7 +3135,7 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa
|
||||||
int i = 0;
|
int i = 0;
|
||||||
synchronized(scanner) {
|
synchronized(scanner) {
|
||||||
for (; i < rows
|
for (; i < rows
|
||||||
&& currentScanResultSize < maxResultSize; i++) {
|
&& currentScanResultSize < maxResultSize; ) {
|
||||||
// Collect values to be returned here
|
// Collect values to be returned here
|
||||||
boolean moreRows = scanner.nextRaw(values);
|
boolean moreRows = scanner.nextRaw(values);
|
||||||
if (!values.isEmpty()) {
|
if (!values.isEmpty()) {
|
||||||
|
@ -3145,6 +3145,7 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
results.add(Result.create(values));
|
results.add(Result.create(values));
|
||||||
|
i++;
|
||||||
}
|
}
|
||||||
if (!moreRows) {
|
if (!moreRows) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue