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 EB95310403 for ; Wed, 25 Sep 2013 02:21:02 +0000 (UTC) Received: (qmail 98695 invoked by uid 500); 25 Sep 2013 02:21:02 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 98666 invoked by uid 500); 25 Sep 2013 02:21:02 -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 98657 invoked by uid 99); 25 Sep 2013 02:21:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Sep 2013 02:21:02 +0000 Date: Wed, 25 Sep 2013 02:21:02 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-8870) Store.needsCompaction() should include minFilesToCompact 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-8870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Shelukhin updated HBASE-8870: ------------------------------------ Attachment: HBASE-8870.03.patch Updating the patch. One test failed and needed to be fixed. > Store.needsCompaction() should include minFilesToCompact > -------------------------------------------------------- > > Key: HBASE-8870 > URL: https://issues.apache.org/jira/browse/HBASE-8870 > Project: HBase > Issue Type: Bug > Components: Compaction > Affects Versions: 0.95.1 > Reporter: Liang Xie > Assignee: Liang Xie > Priority: Minor > Attachments: HBASE-8870.03.patch, HBASE-8870.txt, HBASE-8870.txt, HBase-8870-v2.txt > > > read here: > {code} > public boolean needsCompaction() { > return (storefiles.size() - filesCompacting.size()) > minFilesToCompact; > } > {code} > imho, it should be > {code} > public boolean needsCompaction() { > return (storefiles.size() - filesCompacting.size()) >= minFilesToCompact; > } > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira