Return-Path: X-Original-To: apmail-hbase-commits-archive@www.apache.org Delivered-To: apmail-hbase-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A565F11B96 for ; Sat, 9 Aug 2014 02:36:27 +0000 (UTC) Received: (qmail 77379 invoked by uid 500); 9 Aug 2014 02:36:27 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 77322 invoked by uid 500); 9 Aug 2014 02:36:27 -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 77305 invoked by uid 99); 9 Aug 2014 02:36:27 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Aug 2014 02:36:27 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 21CF7952032; Sat, 9 Aug 2014 02:36:27 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: apurtell@apache.org To: commits@hbase.apache.org Date: Sat, 09 Aug 2014 02:36:30 -0000 Message-Id: <0436c8748e1e4d7aa72d909602fa097c@git.apache.org> In-Reply-To: <1d97830785ec4687bf2bc239c5cd5cc0@git.apache.org> References: <1d97830785ec4687bf2bc239c5cd5cc0@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [4/9] git commit: HBASE-11705 callQueueSize should be decremented in a fail-fast scenario (Esteban Gutierrez) HBASE-11705 callQueueSize should be decremented in a fail-fast scenario (Esteban Gutierrez) Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/c2bfc647 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c2bfc647 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c2bfc647 Branch: refs/heads/master Commit: c2bfc64719718a8d2743cad91a25a842389062df Parents: 3c03dcb Author: Andrew Purtell Authored: Fri Aug 8 18:41:18 2014 -0700 Committer: Andrew Purtell Committed: Fri Aug 8 18:41:18 2014 -0700 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/hbase/ipc/CallRunner.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/c2bfc647/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/CallRunner.java ---------------------------------------------------------------------- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/CallRunner.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/CallRunner.java index 33474d4..c364786 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/CallRunner.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/CallRunner.java @@ -110,7 +110,6 @@ public class CallRunner { RequestContext.clear(); } RpcServer.CurCall.set(null); - this.rpcServer.addCallSize(call.getSize() * -1); // Set the response for undelayed calls and delayed calls with // undelayed responses. if (!call.isDelayed() || !call.isReturnValueDelayed()) { @@ -139,6 +138,9 @@ public class CallRunner { } catch (Exception e) { RpcServer.LOG.warn(Thread.currentThread().getName() + ": caught: " + StringUtils.stringifyException(e)); + } finally { + // regardless if succesful or not we need to reset the callQueueSize + this.rpcServer.addCallSize(call.getSize() * -1); } }