Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@locus.apache.org Received: (qmail 61019 invoked from network); 4 Jul 2008 03:14:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2008 03:14:56 -0000 Received: (qmail 40205 invoked by uid 500); 4 Jul 2008 03:14:56 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 40184 invoked by uid 500); 4 Jul 2008 03:14:56 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 40170 invoked by uid 99); 4 Jul 2008 03:14:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2008 20:14:56 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2008 03:14:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9F09E234C158 for ; Thu, 3 Jul 2008 20:14:34 -0700 (PDT) Message-ID: <2101349382.1215141274645.JavaMail.jira@brutus> Date: Thu, 3 Jul 2008 20:14:34 -0700 (PDT) From: "Jim Kellerman (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Updated: (HBASE-674) memcache size unreliable In-Reply-To: <452364312.1213044885048.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jim Kellerman updated HBASE-674: -------------------------------- Attachment: patch.txt Memcache.add now computes the delta size of the memcache (so if multiple updates are made to the same row/column/timestamp, they are correctly accounted for) HStore.add returns the value from Memcache.add HRegion.internalFlushCache now zeros the memcache size while it has updates locked out. Because of this, the memcache size will reflect the size of the updates that happened since the flush started. Additionally, at the end of a cache flush it reports the number of bytes flushed and not the number of bytes currently in the memcache. memcache size is now updated based on the value returned from HStore.add (which is computed by Memcache.add > memcache size unreliable > ------------------------ > > Key: HBASE-674 > URL: https://issues.apache.org/jira/browse/HBASE-674 > Project: Hadoop HBase > Issue Type: Bug > Affects Versions: 0.1.2 > Reporter: stack > Assignee: Jim Kellerman > Fix For: 0.2.0 > > Attachments: 674-v2.patch, 674.patch, patch.txt > > > Multiple updates against same row/column/ts will be seen as increments to cache size on insert but when we then play the memcache at flush time, we'll only see the most recent entry and decrement the memcache size by whatever its size; memcache will be off. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.