Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 087DE7607 for ; Sun, 2 Oct 2011 13:59:57 +0000 (UTC) Received: (qmail 76750 invoked by uid 500); 2 Oct 2011 13:59:56 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 76726 invoked by uid 500); 2 Oct 2011 13:59:56 -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 76717 invoked by uid 99); 2 Oct 2011 13:59:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Oct 2011 13:59:56 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Oct 2011 13:59:55 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0D6202A59C9 for ; Sun, 2 Oct 2011 13:59:35 +0000 (UTC) Date: Sun, 2 Oct 2011 13:59:35 +0000 (UTC) From: "jiraposter@reviews.apache.org (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <1435526630.1292.1317563975056.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1573426133.925.1317524674972.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4528) The put operation can release the rowlock before sync-ing the Hlog MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-4528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13119011#comment-13119011 ] jiraposter@reviews.apache.org commented on HBASE-4528: ------------------------------------------------------ ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/2141/#review2249 ----------------------------------------------------------- Nice feature. Hopefully there is no surprise in running test suite. /src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java Better remove the whitespace. /src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java Thw should be The /src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java According to the sequence in try block, I think this call should be placed after line 1870. /src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java There should be javadoc for parameter w. /src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java Is localizedRwcc a better name ? /src/test/java/org/apache/hadoop/hbase/regionserver/TestParallelPut.java This is no longer needed. /src/test/java/org/apache/hadoop/hbase/regionserver/TestParallelPut.java Should read "don't spin" /src/test/java/org/apache/hadoop/hbase/regionserver/TestParallelPut.java The word test is redundant. /src/test/java/org/apache/hadoop/hbase/regionserver/TestParallelPut.java I think this loop can be folded into the loop above. /src/test/java/org/apache/hadoop/hbase/regionserver/TestParallelPut.java At least a LOG call should be placed here, for debugging. /src/test/java/org/apache/hadoop/hbase/regionserver/TestParallelPut.java Second part of the sentence should be ' see if the values match'. /src/test/java/org/apache/hadoop/hbase/regionserver/TestParallelPut.java Please remove the space before (. /src/test/java/org/apache/hadoop/hbase/regionserver/TestParallelPut.java Should be initHRegion(, without space. /src/test/java/org/apache/hadoop/hbase/regionserver/TestParallelPut.java This variable should be named row or rowkey. /src/test/java/org/apache/hadoop/hbase/regionserver/TestParallelPut.java Good. /src/test/java/org/apache/hadoop/hbase/regionserver/TestParallelPut.java Should append ' + " failed"' - Ted On 2011-10-02 07:16:56, Dhruba Borthakur wrote: bq. bq. ----------------------------------------------------------- bq. This is an automatically generated e-mail. To reply, visit: bq. https://reviews.apache.org/r/2141/ bq. ----------------------------------------------------------- bq. bq. (Updated 2011-10-02 07:16:56) bq. bq. bq. Review request for hbase. bq. bq. bq. Summary bq. ------- bq. bq. The changes the multiPut operation so that the sync to the wal occurs outside the rowlock. bq. bq. This enhancement is done only to HRegion.mut(Put[]) because this is the only method that gets invoked from an application. The HRegion.put(Put) is used only by unit tests and should possibly be deprecated. bq. bq. I have attached a unit test. I have not yet run all unit tests, but early feedback on this patch will be very helpful. bq. bq. bq. This addresses bug HBASE-4528. bq. https://issues.apache.org/jira/browse/HBASE-4528 bq. bq. bq. Diffs bq. ----- bq. bq. /src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java 1178113 bq. /src/test/java/org/apache/hadoop/hbase/regionserver/TestParallelPut.java PRE-CREATION bq. bq. Diff: https://reviews.apache.org/r/2141/diff bq. bq. bq. Testing bq. ------- bq. bq. Not yet run the full suite of unit tests. bq. bq. bq. Thanks, bq. bq. Dhruba bq. bq. > The put operation can release the rowlock before sync-ing the Hlog > ------------------------------------------------------------------ > > Key: HBASE-4528 > URL: https://issues.apache.org/jira/browse/HBASE-4528 > Project: HBase > Issue Type: Improvement > Components: regionserver > Reporter: dhruba borthakur > Assignee: dhruba borthakur > Attachments: appendNoSyncPut1.txt > > > This allows for better throughput when there are hot rows. A single row update improves from 100 puts/sec/server to 5000 puts/sec/server. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira