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 5DAFC10E58 for ; Tue, 15 Apr 2014 06:36:18 +0000 (UTC) Received: (qmail 29952 invoked by uid 500); 15 Apr 2014 06:36:17 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 29912 invoked by uid 500); 15 Apr 2014 06:36:16 -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 29871 invoked by uid 99); 15 Apr 2014 06:36:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2014 06:36:15 +0000 Date: Tue, 15 Apr 2014 06:36:15 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-10845) Memstore snapshot size isn't updated in DefaultMemStore#rollback() 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-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13969264#comment-13969264 ] stack commented on HBASE-10845: ------------------------------- [~ted_yu] Not what I was thinking but its a test... +1 (I was thinking you'd just do mock up in TestDefaultMemStore -- it already has a bunch of these kind of size calculations). It looks like trunk already has this fix since HBASE-10648. It was just not backported? Thanks. > Memstore snapshot size isn't updated in DefaultMemStore#rollback() > ------------------------------------------------------------------ > > Key: HBASE-10845 > URL: https://issues.apache.org/jira/browse/HBASE-10845 > Project: HBase > Issue Type: Bug > Reporter: Ted Yu > Assignee: Ted Yu > Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3 > > Attachments: 10845-0.98.txt, 10845-v1.txt, 10845-v2.txt, 10845-v3.txt, 10845-v4.txt > > > In DefaultMemStore#rollback() : > {code} > if (found != null && found.getMvccVersion() == kv.getMvccVersion()) { > this.snapshot.remove(kv); > } > {code} > this.snapshotSize should be updated in case of rollback. -- This message was sent by Atlassian JIRA (v6.2#6252)