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 F30A611D23 for ; Fri, 8 Aug 2014 10:17:13 +0000 (UTC) Received: (qmail 39988 invoked by uid 500); 8 Aug 2014 10:17:13 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 39933 invoked by uid 500); 8 Aug 2014 10:17:13 -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 39920 invoked by uid 99); 8 Aug 2014 10:17:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Aug 2014 10:17:13 +0000 Date: Fri, 8 Aug 2014 10:17:13 +0000 (UTC) From: "cuijianwei (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-11626) Region will be closed if user try to move it to an error destination server 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-11626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14090581#comment-14090581 ] cuijianwei commented on HBASE-11626: ------------------------------------ [~apurtell], sorry for replying late. I agree that we shouldn't move a region to a dead or invalid location:). There might be situations that users pass an unexpected server name(for example, copy the server name from page of another hbase cluster) to the 'move region' command, they might not realize the mistake and thought to pass the correct address. Then, the region will be closed and reopened, and can't serve business in this period. We can discover such mistakes earlier before closing the region, so that reduce the impact caused by misoperation. Users should be careful enough to do such operation, and we could try to help them not to make mistakes:) > Region will be closed if user try to move it to an error destination server > --------------------------------------------------------------------------- > > Key: HBASE-11626 > URL: https://issues.apache.org/jira/browse/HBASE-11626 > Project: HBase > Issue Type: Improvement > Components: master > Affects Versions: 0.98.4 > Reporter: cuijianwei > Priority: Minor > > When moving region to a destination server by hbase shell command, such as: > {code} > move '7dbe79eb3a77df085c8546b2ee540e7f', 'localhost,58220,1406806842691' > {code} > user could pass an error destination server name, such as misspellinging the server name. Then, HMaster will close the region firstly and then assign the region to a random server when finding the destination server is not online, and the region can not serve before it is online again. Do we need to check the destination server name corresponds to an online server before closing region?(in HMaster.move(...)) > {code} > ... > if (destServerName == null || destServerName.length == 0) { > .... > } else { > dest = ServerName.valueOf(Bytes.toString(destServerName)); > if (dest.equals(regionState.getServerName())) { > ... > } > // ### check the destination sever is online before closing region ### > } > ... > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)