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 90ED47078 for ; Fri, 16 Sep 2011 06:40:01 +0000 (UTC) Received: (qmail 77895 invoked by uid 500); 16 Sep 2011 06:40:01 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 75419 invoked by uid 500); 16 Sep 2011 06:39:38 -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 75144 invoked by uid 99); 16 Sep 2011 06:39:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2011 06:39:30 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2011 06:39:29 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D50189C95F for ; Fri, 16 Sep 2011 06:39:08 +0000 (UTC) Date: Fri, 16 Sep 2011 06:39:08 +0000 (UTC) From: "Gary Helmling (JIRA)" To: issues@hbase.apache.org Message-ID: <1625695351.33826.1316155148869.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <161026579.17068.1315833549148.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4373) HBaseAdmin.assign() doesnot use force flag 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-4373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13105904#comment-13105904 ] Gary Helmling commented on HBASE-4373: -------------------------------------- Ram, For MasterObserver, BaseMasterObserver, TestMasterObserver, I'd say there's no need to deprecate the existing verison of the methods. Coprocessors have not been released yet, so those classes don't represent an API we have to maintain yet. You can just remove the flag. Otherwise the patch looks good to me. > HBaseAdmin.assign() doesnot use force flag > ------------------------------------------ > > Key: HBASE-4373 > URL: https://issues.apache.org/jira/browse/HBASE-4373 > Project: HBase > Issue Type: Improvement > Reporter: ramkrishna.s.vasudevan > Assignee: ramkrishna.s.vasudevan > Priority: Minor > Attachments: HBASE-4373.patch, HBASE-4373_1.patch > > > The HBaseAdmin.assign() > {code} > public void assign(final byte [] regionName, final boolean force) > throws MasterNotRunningException, ZooKeeperConnectionException, IOException { > getMaster().assign(regionName, force); > } > {code} > In the HMaster we call > {code} > Pair pair = > MetaReader.getRegion(this.catalogTracker, regionName); > if (pair == null) throw new UnknownRegionException(Bytes.toString(regionName)); > if (cpHost != null) { > if (cpHost.preAssign(pair.getFirst(), force)) { > return; > } > } > assignRegion(pair.getFirst()); > if (cpHost != null) { > cpHost.postAssign(pair.getFirst(), force); > } > {code} > The force flag is not getting used. May be we need to update the javadoc or do not provide the force flag as a parameter if we are not going to use it. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira