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 CEB00D1A0 for ; Sat, 1 Dec 2012 22:33:58 +0000 (UTC) Received: (qmail 39603 invoked by uid 500); 1 Dec 2012 22:33:58 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 39570 invoked by uid 500); 1 Dec 2012 22:33: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 39561 invoked by uid 99); 1 Dec 2012 22:33:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2012 22:33:58 +0000 Date: Sat, 1 Dec 2012 22:33:58 +0000 (UTC) From: "Matteo Bertozzi (JIRA)" To: issues@hbase.apache.org Message-ID: <1192701383.49817.1354401238581.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (HBASE-7253) Compaction Tool MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Matteo Bertozzi created HBASE-7253: -------------------------------------- Summary: Compaction Tool Key: HBASE-7253 URL: https://issues.apache.org/jira/browse/HBASE-7253 Project: HBase Issue Type: New Feature Components: Compaction Affects Versions: 0.96.0 Reporter: Matteo Bertozzi Assignee: Matteo Bertozzi Priority: Minor Fix For: 0.96.0 Attachments: HBASE-7253-v0.patch In HBASE-5616, as part of the compaction code refactor, a CompactionTool was added. but there are some issues: * The tool is under test/ * mockito is required, so the "test" scope should be removed from the pom.xml, otherwise the tool doesn't start * The mock, used by the tool, is mocking HRegion.getRegionInfo() but some code (Store) uses HRegion.regionInfo directly HStore.java#L2021, HStore.java#L1389, HStore.java#L1402 and you end up with a NPE in the tool. * The Mocked Store uses a dummy family and the compacted files doesn't get the same family properties specified (compression, encoding, ...) * at the end of compaction CompactionTool.java#L155, on by default, the compaction file is removed (note that the compacted one are already removed inside the store.compact()... and you end up with an empty dir, if you compact everything. I've fixed some stuff and added support to: * Run the compaction as a MR Job * Specify a Table (compact each region/family) * Specify a Region (compact each family) * Specify a Family (as before) -- 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