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 F1A8E200CA4 for ; Wed, 7 Jun 2017 11:56:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F0765160BB6; Wed, 7 Jun 2017 09:56: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 4A1E7160BD0 for ; Wed, 7 Jun 2017 11:56:23 +0200 (CEST) Received: (qmail 97066 invoked by uid 500); 7 Jun 2017 09:56: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 96964 invoked by uid 99); 7 Jun 2017 09:56:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jun 2017 09:56:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 9C4A31AFE3C for ; Wed, 7 Jun 2017 09:56:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id OQo7KoxJpRAJ for ; Wed, 7 Jun 2017 09:56:20 +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 062F45F6C3 for ; Wed, 7 Jun 2017 09:56:20 +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 37A61E002B for ; Wed, 7 Jun 2017 09:56:19 +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 7245E21E14 for ; Wed, 7 Jun 2017 09:56:18 +0000 (UTC) Date: Wed, 7 Jun 2017 09:56: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] [Updated] (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 09:56:24 -0000 [ https://issues.apache.org/jira/browse/TEPHRA-232?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Micael Capit=C3=A3o updated TEPHRA-232: ---------------------------------- Priority: Minor (was: Critical) > 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)