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 DA2C810B4E for ; Thu, 11 Apr 2013 06:05:17 +0000 (UTC) Received: (qmail 95765 invoked by uid 500); 11 Apr 2013 06:05:17 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 95579 invoked by uid 500); 11 Apr 2013 06:05:17 -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 95557 invoked by uid 99); 11 Apr 2013 06:05:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Apr 2013 06:05:16 +0000 Date: Thu, 11 Apr 2013 06:05:16 +0000 (UTC) From: "Hiroshi Ikeda (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-7437) Improve CompactSelection 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-7437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hiroshi Ikeda updated HBASE-7437: --------------------------------- Attachment: HBASE-7437-V4.patch Patch v4 from review board. > Improve CompactSelection > ------------------------ > > Key: HBASE-7437 > URL: https://issues.apache.org/jira/browse/HBASE-7437 > Project: HBase > Issue Type: Improvement > Components: Compaction > Reporter: Hiroshi Ikeda > Assignee: Hiroshi Ikeda > Priority: Minor > Attachments: HBASE-7437.patch, HBASE-7437-V2.patch, HBASE-7437-V3.patch, HBASE-7437-V4.patch > > > 1. Using AtomicLong makes CompactSelection simple and improve its performance. > 2. There are unused fields and methods. > 3. The fields should be private. > 4. Assertion in the method finishRequest seems wrong: > {code} > public void finishRequest() { > if (isOffPeakCompaction) { > long newValueToLog = -1; > synchronized(compactionCountLock) { > assert !isOffPeakCompaction : "Double-counting off-peak count for compaction"; > {code} > The above assertion seems almost always false. -- 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