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 C7301100CF for ; Fri, 13 Dec 2013 19:15:07 +0000 (UTC) Received: (qmail 71259 invoked by uid 500); 13 Dec 2013 19:15:07 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 71221 invoked by uid 500); 13 Dec 2013 19:15:07 -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 71212 invoked by uid 99); 13 Dec 2013 19:15:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Dec 2013 19:15:07 +0000 Date: Fri, 13 Dec 2013 19:15:07 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-9648) collection one expired storefile causes it to be replaced by another expired storefile 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-9648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13847797#comment-13847797 ] Sergey Shelukhin commented on HBASE-9648: ----------------------------------------- {code} + if ((requestMaxSequenceId == storeMaxSequenceId) || (requestEntries > 0)) writer = + store.createWriterInTmp(fd.maxKeyCount, this.compactionCompression, true, + fd.maxMVCCReadpoint >= smallestReadPoint, fd.maxTagsLength > 0); {code} Nit: please add braces. Other than that, seeing if inputs have entries is not technically speaking valid because coproc can replace scanners. Should it rather create writer either if last seqId is being compacted there, or on first record from the scanner, if needed? > collection one expired storefile causes it to be replaced by another expired storefile > -------------------------------------------------------------------------------------- > > Key: HBASE-9648 > URL: https://issues.apache.org/jira/browse/HBASE-9648 > Project: HBase > Issue Type: Bug > Components: Compaction > Reporter: Sergey Shelukhin > Assignee: Jean-Marc Spaggiari > Attachments: HBASE-9648-v0-0.94.patch, HBASE-9648-v0-trunk.patch, HBASE-9648-v1-trunk.patch, HBASE-9648-v2-trunk.patch, HBASE-9648.patch > > > There's a shortcut in compaction selection that causes the selection of expired store files to quickly delete. > However, there's also the code that ensures we write at least one file to preserve seqnum. This new empty file is "expired", because it has no data, presumably. > So it's collected again, etc. > This affects 94, probably also 96. -- This message was sent by Atlassian JIRA (v6.1.4#6159)