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 179BE10996 for ; Sat, 24 Aug 2013 00:29:52 +0000 (UTC) Received: (qmail 12965 invoked by uid 500); 24 Aug 2013 00:29:51 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 12920 invoked by uid 500); 24 Aug 2013 00:29:51 -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 12912 invoked by uid 99); 24 Aug 2013 00:29:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Aug 2013 00:29:51 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [209.85.192.170] (HELO mail-pd0-f170.google.com) (209.85.192.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Aug 2013 00:29:45 +0000 Received: by mail-pd0-f170.google.com with SMTP id x10so1278323pdj.1 for ; Fri, 23 Aug 2013 17:29:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=H6bYk0b8TKPb2tEfVEKIr3bmCHABLZ6WZOZM9/6vQ50=; b=J0M/qtr76w9ULotkm5xPMd8zM7yqSab/35ZZSu//qZZO1F2bzp/L57Vz9qD3hdYWr7 cNoqenyOY0OJGrIgrTy86vA7Ao3asoGcEbL5wyoj1fnUKMInclqsjOzGop/EFkbmHjSt 9UfV4C3cLQc27eT0j2nNOUrBdKHnzxYDZyLkP8DkjDwLgL5bwJ5nrEgneLCO8ifTejKd IpXqjWWNdMDGo5ZZSog61/2kEeciUXDlFOWwwFMOVtOkRlSEH7db/w3Djo1X1KAI/NZo dzJvCABpwT6wnntm5k7mr0IhEgfip1fai1m212Uj2BQXkn1D3EZtB1+CBawixMkUfyT1 tCTg== X-Gm-Message-State: ALoCoQlw4dC7nu5+cBq9QfBA2hUPBnzIdXy549qAsVJNJHxl6L23Tpp9/8aPZ4DwqNIv8s5QqSsf X-Received: by 10.68.189.70 with SMTP id gg6mr2377491pbc.123.1377304144363; Fri, 23 Aug 2013 17:29:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.70.37.12 with HTTP; Fri, 23 Aug 2013 17:28:44 -0700 (PDT) In-Reply-To: References: From: Jean-Marc Spaggiari Date: Fri, 23 Aug 2013 20:28:44 -0400 Message-ID: Subject: Re: HBaseAdmin.getCompactionState feature To: dev Content-Type: multipart/alternative; boundary=e89a8ff1c03e45d90b04e4a69c57 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff1c03e45d90b04e4a69c57 Content-Type: text/plain; charset=UTF-8 Forget it. It's already the case... Then I don't understand where the stack from 9328 is coming from... I will look at that deeper... JM 2013/8/23 Jean-Marc Spaggiari > Hi there, > > Quick question. What are we expecting for HBaseAdmin.getCompactionState? > > From the javadoc: > Get the current compaction state of a table or region.It could be in a > major compaction, a minor compaction, both, or none. > > However, this is causing an issue on HBASE-9328 > . > > Why? Because when a region is splitting, RegionServer will return > "NotServingRegionException: Region is not online" and then > HBaseAdmin.getCompactionState will throw an expection. > > I think this need to be catch. If the region is splitting or offline, then > it's not compacting. So we should not return an exception from > HBaseAdmin.getCompactionState because a region is currently offline. > > Does anyone have any objection with that? > > JM > --e89a8ff1c03e45d90b04e4a69c57--