hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r1551796 - /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
Date Wed, 18 Dec 2013 01:35:10 GMT
Author: apurtell
Date: Wed Dec 18 01:35:10 2013
New Revision: 1551796

URL: http://svn.apache.org/r1551796
Log:
HBASE-10179. HRegionServer underreports readRequestCounts by 1 under certain conditions (Perry
Trolard)

Modified:
    hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java

Modified: hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java?rev=1551796&r1=1551795&r2=1551796&view=diff
==============================================================================
--- hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
(original)
+++ hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
Wed Dec 18 01:35:10 2013
@@ -3055,7 +3055,7 @@ public class HRegionServer implements Cl
               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()) {
@@ -3065,6 +3065,7 @@ public class HRegionServer implements Cl
                       }
                     }
                     results.add(Result.create(values));
+                    i++;
                   }
                   if (!moreRows) {
                     break;



Mime
View raw message