You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2015/08/26 01:36:41 UTC

hbase git commit: HBASE-14258 Make region_mover.rb script case insensitive with regard to hostname (Vladimir Rodionov)

Repository: hbase
Updated Branches:
  refs/heads/master 3dacee674 -> 506726ed2


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/506726ed
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/506726ed
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/506726ed

Branch: refs/heads/master
Commit: 506726ed2832b069602c6b7e2ccd5ec9a81013a6
Parents: 3dacee6
Author: tedyu <yu...@gmail.com>
Authored: Tue Aug 25 16:36:39 2015 -0700
Committer: tedyu <yu...@gmail.com>
Committed: Tue Aug 25 16:36:39 2015 -0700

----------------------------------------------------------------------
 bin/region_mover.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/506726ed/bin/region_mover.rb
----------------------------------------------------------------------
diff --git a/bin/region_mover.rb b/bin/region_mover.rb
index a6b11db..768c5d6 100644
--- a/bin/region_mover.rb
+++ b/bin/region_mover.rb
@@ -201,11 +201,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