Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 50467 invoked from network); 4 Mar 2011 00:12:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Mar 2011 00:12:00 -0000 Received: (qmail 75580 invoked by uid 500); 4 Mar 2011 00:12:00 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 75472 invoked by uid 500); 4 Mar 2011 00:12:00 -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 75462 invoked by uid 99); 4 Mar 2011 00:12:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Mar 2011 00:12:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Fri, 04 Mar 2011 00:11:57 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D935C4EC54 for ; Fri, 4 Mar 2011 00:11:36 +0000 (UTC) Date: Fri, 4 Mar 2011 00:11:36 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: <430375772.12520.1299197496886.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <42232873.7378.1299052058090.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (HBASE-3588) Proposal to optimize ReadWriteConsistencyControl 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-3588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002344#comment-13002344 ] Ted Yu commented on HBASE-3588: ------------------------------- The following change in MemStore would make TestHeapSize pass: {code} public final static long FIXED_OVERHEAD = ClassSize.align( ClassSize.OBJECT + (12 * ClassSize.REFERENCE)); {code} > Proposal to optimize ReadWriteConsistencyControl > ------------------------------------------------ > > Key: HBASE-3588 > URL: https://issues.apache.org/jira/browse/HBASE-3588 > Project: HBase > Issue Type: Improvement > Components: regionserver > Reporter: dhruba borthakur > Assignee: dhruba borthakur > Attachments: rwcc.trunk.1, rwcc.trunk.1 > > > The ReadWriteConsistencyControl (RWCC) mechanism facilitates making a set of memstore updates atomically visible to readers. Also, the rwcc.completeMemstoreInsert() blocks till the memstore read point advances to the current writeNumber. This is done to ensure that if an application that does a put immediately issues a new get call for the same key, then the get should see the values inserted by the previous call to put. The current implementation assumes this worst-case and penalizes the put rpc to not return to the client until the read point advances to this transaction's write number. > In many use-cases, the application never actually issues a get for the most recent put that it inserted. In this case, it would be nice if we can transfer the penalty (of blocking) to the get call that follows the initial put. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira