Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C751F11A9A for ; Fri, 19 Sep 2014 18:23:34 +0000 (UTC) Received: (qmail 72954 invoked by uid 500); 19 Sep 2014 18:23:34 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 72786 invoked by uid 500); 19 Sep 2014 18:23:34 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 72531 invoked by uid 99); 19 Sep 2014 18:23:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Sep 2014 18:23:33 +0000 Date: Fri, 19 Sep 2014 18:23:33 +0000 (UTC) From: "Matteo Bertozzi (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-12030) Wrong compaction report and assert when MOB compaction switches to minor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Matteo Bertozzi created HBASE-12030: --------------------------------------- Summary: Wrong compaction report and assert when MOB compaction switches to minor Key: HBASE-12030 URL: https://issues.apache.org/jira/browse/HBASE-12030 Project: HBase Issue Type: Bug Components: regionserver Affects Versions: hbase-11339 Reporter: Matteo Bertozzi Priority: Critical Fix For: hbase-11339 when zookeeper is down during a major compaction, we switch to a minor. {code} try { zk = MobZookeeper.newInstance(this.conf, compactionName); } catch (KeeperException e) { LOG.error("Cannot connect to the zookeeper, ready to perform the minor compaction instead", e); // change the major compaction into a minor one compaction.getRequest().setIsMajor(false); return super.compact(compaction); } {code} but the "request start" (HRegion.reportCompactionRequestStart) is "major" and increments the major-compactions counter while the "request end" (HRegion.reportCompactionRequestEnd) is "minor" and decrements the minor-compactions counter triggering the assert newValue >= 0, since we are decrementing the wrong counter -- This message was sent by Atlassian JIRA (v6.3.4#6332)