Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 5063 invoked from network); 3 Jun 2010 16:09:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Jun 2010 16:09:17 -0000 Received: (qmail 13111 invoked by uid 500); 3 Jun 2010 16:09:17 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 13089 invoked by uid 500); 3 Jun 2010 16:09:17 -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 13081 invoked by uid 99); 3 Jun 2010 16:09:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2010 16:09:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2010 16:09:15 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o53G8rFt000758 for ; Thu, 3 Jun 2010 16:08:53 GMT Message-ID: <17188360.161161275581333546.JavaMail.jira@thor> Date: Thu, 3 Jun 2010 12:08:53 -0400 (EDT) From: "stack (JIRA)" To: issues@hbase.apache.org Subject: [jira] Commented: (HBASE-2208) TableServers # processBatchOfRows - converts from List to [ ] - Expensive copy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-2208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875172#action_12875172 ] stack commented on HBASE-2208: ------------------------------ You have a patch for this now Kay Kay? > TableServers # processBatchOfRows - converts from List to [ ] - Expensive copy > ------------------------------------------------------------------------------------ > > Key: HBASE-2208 > URL: https://issues.apache.org/jira/browse/HBASE-2208 > Project: HBase > Issue Type: Improvement > Reporter: Kay Kay > Fix For: 0.21.0 > > > With autoFlush to false and a large write buffer on HTable, when we write bulk puts - TableServer # processBatchOfRows , convert the input (List) to an [ ] , before sending down the wire. > With a write buffer as large as 20 MB , that becomes an expensive copy when we do - list.toArray(new T[ ] ). > May be - should we change the wire protocol to support List as well , and then revisit this to prevent the bulk copy ? > {code} > Batch b = new Batch(this) { > @Override > int doCall(final List currentList, final byte [] row, > final byte [] tableName) > throws IOException, RuntimeException { > *final Put [] puts = currentList.toArray(PUT_ARRAY_TYPE);* > return getRegionServerWithRetries(new ServerCallable(this.c, > tableName, row) { > public Integer call() throws IOException { > return server.put(location.getRegionInfo().getRegionName(), puts); > } > }); > } > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.