hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
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:37:15 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 c12757786 -> 9b55f1cd2


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

Branch: refs/heads/branch-1
Commit: 9b55f1cd293c5165d6d12c88542297c093cad3d9
Parents: c127577
Author: tedyu <yuzhihong@gmail.com>
Authored: Tue Aug 25 16:37:11 2015 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Tue Aug 25 16:37:11 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/9b55f1cd/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


Mime
View raw message