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 97562200CA4 for ; Wed, 7 Jun 2017 12:08:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 95EFF160BB6; Wed, 7 Jun 2017 10:08:23 +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 D92CD160BE5 for ; Wed, 7 Jun 2017 12:08:22 +0200 (CEST) Received: (qmail 19938 invoked by uid 500); 7 Jun 2017 10:08:22 -0000 Mailing-List: contact dev-help@tephra.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tephra.incubator.apache.org Delivered-To: mailing list dev@tephra.incubator.apache.org Received: (qmail 19921 invoked by uid 99); 7 Jun 2017 10:08:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jun 2017 10:08:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A4CCDC002B for ; Wed, 7 Jun 2017 10:08:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id U-BTAchH6srf for ; Wed, 7 Jun 2017 10:08:20 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E76355FC1C for ; Wed, 7 Jun 2017 10:08:19 +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 EF4B3E0D1A for ; Wed, 7 Jun 2017 10:08:18 +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 4525521E0F for ; Wed, 7 Jun 2017 10:08:18 +0000 (UTC) Date: Wed, 7 Jun 2017 10:08:18 +0000 (UTC) From: =?utf-8?Q?Micael_Capit=C3=A3o_=28JIRA=29?= To: dev@tephra.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (TEPHRA-232) Transaction metadata sent on each put is too big MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 07 Jun 2017 10:08:23 -0000 [ https://issues.apache.org/jira/browse/TEPHRA-232?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1604= 0621#comment-16040621 ]=20 Micael Capit=C3=A3o edited comment on TEPHRA-232 at 6/7/17 10:07 AM: ---------------------------------------------------------------- I've found the issue to be related to the amount of invalid transactions I = have pilled up during my tests. That is 13015 invalid transactions which ex= plains the size of the serialized Transaction object. My question is, shoul= dn't those invalid transactions get cleared? Another question: does the Transaction object may change outside the startT= x and updateTx calls? I was wondering if it is really needed to serialize i= t on each single operation or just on the startTx and then on each updateTx= call. was (Author: capitao): I've found the issue to be related to the amount of invalid transactions I = have pilled up during my tests. That is 13015 invalid transactions which ex= plains the size of the serialized Transaction object. My question is, shoul= dn't those invalid transactions get cleared? > Transaction metadata sent on each put is too big > ------------------------------------------------ > > Key: TEPHRA-232 > URL: https://issues.apache.org/jira/browse/TEPHRA-232 > Project: Tephra > Issue Type: Bug > Affects Versions: 0.11.0-incubating, 0.12.0-incubating > Environment: HBase 1.2.0-cdh5.11 > CentOS 7.3 > 4x machines > Bandwidth between machines 1Gbps > Reporter: Micael Capit=C3=A3o > Assignee: Poorna Chandra > Priority: Minor > > I've been testing Tephra 0.11.0 (and more recently 0.12.0) for a project = that may need transactions on top of HBase and I find it's performance, for= instance, for a bulk load, very poor. Let's not discuss why am I doing a b= ulk load with transactions. > In my use case I am generating batches of ~10000 elements and inserting t= hem with the *put(List puts)* method. There is no concurrent writers o= r readers. > If I do the put without transactions it takes ~0.5s. If I use the *Transa= ctionAwareHTable* it takes ~12s. > In both cases the network bandwidth is fully utilised. > I've tracked down the performance killer to be the *addToOperation(Operat= ionWithAttributes op, Transaction tx)* on the TransactionAwareHTable. > I've created a TransactionAwareHTableFix with the *addToOperation(txPut, = tx)* commented, and used it in my code, and each batch started to take ~0.5= s. > Then I checked what was being done inside the *addToOperation* method and= verified that the issue has something to do with the serialization of the = Transaction object. The serialized Transaction object has 104171 bytes of l= ength. Considering that it happens for each put, basically my batch of ~100= 00 elements has ~970MB of serialized transactions, which explains the 12s v= s 5s to be processed at the same time that the network is exhausted. > It seems that the transactions' metadata, despite being sent to HBase, is= not stored so the final table size, with or without transactions, is the s= ame. > Is this metadata encoding and send behaviour expected? This is making Tep= hra unusable, at least with only 1Gbps bandwidth. -- This message was sent by Atlassian JIRA (v6.3.15#6346)