From 4fb0da7f842fa900ac8162752994ea294d9979eb Mon Sep 17 00:00:00 2001 From: Andrew Kyle Purtell Date: Wed, 18 Dec 2013 01:29:21 +0000 Subject: [PATCH] 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 --- .../org/apache/hadoop/hbase/regionserver/HRegionServer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java index 6e7849f9f97..951ef6d16fc 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java @@ -3135,7 +3135,7 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa int i = 0; synchronized(scanner) { for (; i < rows - && currentScanResultSize < maxResultSize; i++) { + && currentScanResultSize < maxResultSize; ) { // Collect values to be returned here boolean moreRows = scanner.nextRaw(values); if (!values.isEmpty()) { @@ -3145,6 +3145,7 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa } } results.add(Result.create(values)); + i++; } if (!moreRows) { break;