Return-Path: X-Original-To: apmail-hbase-commits-archive@www.apache.org Delivered-To: apmail-hbase-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ADFBD100F8 for ; Tue, 25 Aug 2015 23:38:28 +0000 (UTC) Received: (qmail 56475 invoked by uid 500); 25 Aug 2015 23:38:28 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 56430 invoked by uid 500); 25 Aug 2015 23:38:28 -0000 Mailing-List: contact commits-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 commits@hbase.apache.org Received: (qmail 56420 invoked by uid 99); 25 Aug 2015 23:38:28 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Aug 2015 23:38:28 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5907CE027D; Tue, 25 Aug 2015 23:38:28 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tedyu@apache.org To: commits@hbase.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: hbase git commit: HBASE-14258 Make region_mover.rb script case insensitive with regard to hostname (Vladimir Rodionov) Date: Tue, 25 Aug 2015 23:38:28 +0000 (UTC) Repository: hbase Updated Branches: refs/heads/branch-1.1 1cbc8f350 -> ae5439051 HBASE-14258 Make region_mover.rb script case insensitive with regard to hostname (Vladimir Rodionov) Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/ae543905 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/ae543905 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/ae543905 Branch: refs/heads/branch-1.1 Commit: ae543905127bd09c35c11b7e9aa5d8cb368b3c46 Parents: 1cbc8f3 Author: tedyu Authored: Tue Aug 25 16:38:25 2015 -0700 Committer: tedyu Committed: Tue Aug 25 16:38:25 2015 -0700 ---------------------------------------------------------------------- bin/region_mover.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/ae543905/bin/region_mover.rb ---------------------------------------------------------------------- diff --git a/bin/region_mover.rb b/bin/region_mover.rb index 134b032..03ed1b6 100644 --- a/bin/region_mover.rb +++ b/bin/region_mover.rb @@ -180,11 +180,13 @@ end # Remove the servername whose hostname portion matches from the passed # array of servers. Returns as side-effect the servername removed. def stripServer(servers, hostname, port) + upperCaseHostname = hostname.upcase; count = servers.length servername = nil for server in servers hostFromServerName, portFromServerName = getHostPortFromServerName(server) - if hostFromServerName == hostname and portFromServerName == port + hostFromServerName = hostFromServerName.upcase + if hostFromServerName == upperCaseHostname and portFromServerName == port servername = servers.delete(server) end end