From 14db858a287750ab784cd3388bd6c0c298fdb5c6 Mon Sep 17 00:00:00 2001 From: stack Date: Mon, 8 Jun 2015 20:35:43 -0700 Subject: [PATCH] HBASE-13847 getWriteRequestCount function in HRegionServer uses int variable to return the count (Abhilash) --- .../org/apache/hadoop/hbase/regionserver/HRegionServer.java | 2 +- 1 file changed, 1 insertion(+), 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 a70456a3b0f..e097e9b1cbd 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 @@ -1109,7 +1109,7 @@ public class HRegionServer extends HasThread implements * @return Current write count for all online regions. */ private long getWriteRequestCount() { - int writeCount = 0; + long writeCount = 0; for (Map.Entry e: this.onlineRegions.entrySet()) { writeCount += e.getValue().getWriteRequestsCount(); }