Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 82747 invoked from network); 5 Oct 2010 20:57:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Oct 2010 20:57:01 -0000 Received: (qmail 54140 invoked by uid 500); 5 Oct 2010 20:57:01 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 54109 invoked by uid 500); 5 Oct 2010 20:57:01 -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 54101 invoked by uid 99); 5 Oct 2010 20:57:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 20:57:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 20:57:00 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o95KueTj024898 for ; Tue, 5 Oct 2010 20:56:40 GMT Message-ID: <14919305.556031286312200409.JavaMail.jira@thor> Date: Tue, 5 Oct 2010 16:56:40 -0400 (EDT) From: "Jonathan Gray (JIRA)" To: issues@hbase.apache.org Subject: [jira] Updated: (HBASE-2770) Major compactions from shell may not major compact all families In-Reply-To: <14927116.611277244291722.JavaMail.jira@thor> 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-2770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Gray updated HBASE-2770: --------------------------------- Fix Version/s: (was: 0.90.0) 0.92.0 Punting to 0.92 for now. The bigger compaction/flush improvements should happen in that version. > Major compactions from shell may not major compact all families > --------------------------------------------------------------- > > Key: HBASE-2770 > URL: https://issues.apache.org/jira/browse/HBASE-2770 > Project: HBase > Issue Type: Bug > Affects Versions: 0.20.4 > Reporter: Dave Latham > Priority: Critical > Fix For: 0.92.0 > > > As part of a data center migration, I initiated a major_compaction request on all tables from the shell. A few hours later, all the region servers in the cluster appeared to have completed the compactions and all compactionQueue metrics were back to 0. However, some column families of some regions had not actually done a major compaction. > Digging through logs and code, it looks like the following happened. The shell makes a major compaction request which sets HRegion.forceMajorCompaction to true for every region. Periodically, the HRegionServer.MajorCompactionChecker checks to see if a major compaction is needed in any family's store. If so, calls CompactSplitThread.compactionRequested which ends up setting the region forceMajorCompaction to false, even if it is already in the compaction queue and set to true. Then, when that region comes off the queue to be compacted, each family/store separately checks for whether it should do a major compaction, so some families may not do so. > (This is not good if, for example, you're doing a DistCp of the hbase dir and later on the cluster decides to do a compaction on those files and deletes ones the DistCp job is looking for, causing it to fail.) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.