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 A8166200C23 for ; Tue, 17 Jan 2017 22:20:32 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A78DD160B52; Tue, 17 Jan 2017 21:20:32 +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 F41E3160B55 for ; Tue, 17 Jan 2017 22:20:31 +0100 (CET) Received: (qmail 93041 invoked by uid 500); 17 Jan 2017 21:20:31 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 92735 invoked by uid 99); 17 Jan 2017 21:20:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2017 21:20:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 7B306C1718 for ; Tue, 17 Jan 2017 21:20:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id cxIui7O2R91Q for ; Tue, 17 Jan 2017 21:20:29 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 485635FB80 for ; Tue, 17 Jan 2017 21:20:29 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 4E570E867D for ; Tue, 17 Jan 2017 21:20:28 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A8AF625291 for ; Tue, 17 Jan 2017 21:20:26 +0000 (UTC) Date: Tue, 17 Jan 2017 21:20:26 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-17387) Reduce the overhead of exception report in RegionActionResult for multi() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 17 Jan 2017 21:20:32 -0000 [ https://issues.apache.org/jira/browse/HBASE-17387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15826837#comment-15826837 ] Hudson commented on HBASE-17387: -------------------------------- FAILURE: Integrated in Jenkins build HBase-1.3-JDK8 #95 (See [https://builds.apache.org/job/HBase-1.3-JDK8/95/]) HBASE-17387 Reduce the overhead of exception report in (tedyu: rev eb19a67486e1d722ce2f9d3484c0a7b111438d43) * (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java > Reduce the overhead of exception report in RegionActionResult for multi() > ------------------------------------------------------------------------- > > Key: HBASE-17387 > URL: https://issues.apache.org/jira/browse/HBASE-17387 > Project: HBase > Issue Type: Bug > Reporter: Ted Yu > Assignee: Ted Yu > Priority: Minor > Fix For: 2.0.0, 1.4.0, 1.3.1 > > Attachments: 17387.v1.txt, 17387.v2.txt, 17387.v3.txt > > > For RSRpcServices#doNonAtomicRegionMutation() : > {code} > for (ClientProtos.Action action: actions.getActionList()) { > ... > } catch (IOException ie) { > rpcServer.getMetrics().exception(ie); > resultOrExceptionBuilder = ResultOrException.newBuilder(). > setException(ResponseConverter.buildException(ie)); > } > if (resultOrExceptionBuilder != null) { > // Propagate index. > resultOrExceptionBuilder.setIndex(action.getIndex()); > builder.addResultOrException(resultOrExceptionBuilder.build()); > } > {code} > The exceptions are added to builder in the for loop. > The ClientProtos.ResultOrException.Builder instance is created within the for loop. > For large multi call, this may incur non-trivial overhead for garbage collector if there're many exceptions. > e.g. Here was sample debug log showing the actions in a batch: > {code} > 2016-12-23 04:21:56,263 DEBUG org.apache.hadoop.hbase.regionserver.RSRpcServices: NonAtomicRegionMutation batch summary: numAppends=0, numDeletes=11, numGets=0, numIncrements=15638, numPuts=15627, numServiceCalls=0, serializedSize=3871713, user=hbase/pob3.G.COM (auth:KERBEROS), client=null > {code} > Note the large number of increments in the batch. > When the increments encounter conflict at server side, the overhead of stringified exceptions in response is considerable. -- This message was sent by Atlassian JIRA (v6.3.4#6332)