hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [1/3] hbase git commit: HBASE-14258 Make region_mover.rb script case insensitive with regard to hostname (Vladimir Rodionov)
Date Sat, 05 Sep 2015 21:36:22 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 af789a57e -> 9f73d722e


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

Branch: refs/heads/0.98
Commit: bcfb91d4e453780d2191d14b2a9d364360a660dd
Parents: af789a5
Author: tedyu <yuzhihong@gmail.com>
Authored: Tue Aug 25 16:37:11 2015 -0700
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Sat Sep 5 14:21:06 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/bcfb91d4/bin/region_mover.rb
----------------------------------------------------------------------
diff --git a/bin/region_mover.rb b/bin/region_mover.rb
index f1f2274..04fce6c 100644
--- a/bin/region_mover.rb
+++ b/bin/region_mover.rb
@@ -182,11 +182,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


Mime
View raw message