Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5840C200C00 for ; Wed, 4 Jan 2017 06:28:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 56547160B46; Wed, 4 Jan 2017 05:28:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9F729160B43 for ; Wed, 4 Jan 2017 06:27:59 +0100 (CET) Received: (qmail 79583 invoked by uid 500); 4 Jan 2017 05:27:58 -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 79552 invoked by uid 99); 4 Jan 2017 05:27:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2017 05:27:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 638422C0453 for ; Wed, 4 Jan 2017 05:27:58 +0000 (UTC) Date: Wed, 4 Jan 2017 05:27:58 +0000 (UTC) From: "ramkrishna.s.vasudevan (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-17373) Reverse the order of snapshot creation in the CompactingMemStore MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 04 Jan 2017 05:28:00 -0000 [ https://issues.apache.org/jira/browse/HBASE-17373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15797224#comment-15797224 ] ramkrishna.s.vasudevan commented on HBASE-17373: ------------------------------------------------ [~eshcar] I could spend more time in the logic and today I got the time to do it. I can see the purpose now. So before removing the snapshot has to be assigned and later we could remove the snapshot. So by the time the scanner is created there are chances that the snapshot could be in pipeline and in snapshot - so we will iterate twice but it is ok. But just an opinion - the swap was used to make use of existing code - but still in this case where only the tail has to be removed - removeLast() is much faster than saying removeAll which has to iterate and then remove. After removing the unused code it is quite easier to read the patch and it helps a lot. Thanks. > Reverse the order of snapshot creation in the CompactingMemStore > ---------------------------------------------------------------- > > Key: HBASE-17373 > URL: https://issues.apache.org/jira/browse/HBASE-17373 > Project: HBase > Issue Type: Sub-task > Reporter: Anastasia Braginsky > Assignee: Eshcar Hillel > Fix For: 2.0.0 > > Attachments: HBASE-17373-V01.patch, HBASE-17373-V02.patch, HBASE-17373-V03.patch, HBASE-17373-V04.patch, HBASE-17373-V04.patch, HBASE-17373-V05.patch > > > In CompactingMemStore both in BASIC and EAGER cases when snapshot is created the segments are first removed from the pipeline then added to the snapshot. This is the opposite to what is done in the DefaultMemStore where the snapshot is firstly created with the active segment and only after the active segment is refreshed. This JIRA is about to reverse the order in CompactingMemStore and to make all MemStores to behave the same. -- This message was sent by Atlassian JIRA (v6.3.4#6332)