Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EAA8D200D4C for ; Thu, 30 Nov 2017 17:47:38 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E9142160C04; Thu, 30 Nov 2017 16:47:38 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3E66B160BF6 for ; Thu, 30 Nov 2017 17:47:38 +0100 (CET) Received: (qmail 90831 invoked by uid 500); 30 Nov 2017 16:47:37 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 90822 invoked by uid 99); 30 Nov 2017 16:47:37 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Nov 2017 16:47:37 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4A46FE0433; Thu, 30 Nov 2017 16:47:37 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tedyu@apache.org To: commits@hbase.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: hbase git commit: HBASE-19388 - Incorrect value is being set for Compaction Pressure in RegionLoadStats object inside HRegion class Date: Thu, 30 Nov 2017 16:47:37 +0000 (UTC) archived-at: Thu, 30 Nov 2017 16:47:39 -0000 Repository: hbase Updated Branches: refs/heads/master 6a6409a30 -> e0dd26de8 HBASE-19388 - Incorrect value is being set for Compaction Pressure in RegionLoadStats object inside HRegion class Signed-off-by: tedyu Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e0dd26de Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e0dd26de Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e0dd26de Branch: refs/heads/master Commit: e0dd26de8e75a14e2332827e1c092a24f08f640d Parents: 6a6409a Author: Harshal Deepakkumar Jain Authored: Thu Nov 30 18:08:01 2017 +0530 Committer: tedyu Committed: Thu Nov 30 08:47:23 2017 -0800 ---------------------------------------------------------------------- .../main/java/org/apache/hadoop/hbase/regionserver/HRegion.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/e0dd26de/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java ---------------------------------------------------------------------- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java index e5e0729..364c32a 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java @@ -7189,8 +7189,8 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi stats.setHeapOccupancy((int)(occupancy * 100)); } } - stats.setCompactionPressure((int)rsServices.getCompactionPressure()*100 > 100 ? 100 : - (int)rsServices.getCompactionPressure()*100); + stats.setCompactionPressure((int) (rsServices.getCompactionPressure() * 100 > 100 ? 100 + : rsServices.getCompactionPressure() * 100)); return stats.build(); }