This is an automated email from the ASF dual-hosted git repository.

apurtell pushed a commit to branch branch-1.3
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-1.3 by this push:
     new 2b15c9a  HBASE-22538 Prevent graceful_stop.sh from shutting down RS 
too early before finishing unloading regions (Jeongdae Kim)
2b15c9a is described below

commit 2b15c9a6bac8ea0fe6947e3248d1a679763260a1
Author: Andrew Purtell <[email protected]>
AuthorDate: Thu Jun 20 15:24:06 2019 -0700

    HBASE-22538 Prevent graceful_stop.sh from shutting down RS too early before 
finishing unloading regions (Jeongdae Kim)
    
    Signed-off-by: Andrew Purtell <[email protected]>
---
 bin/region_mover.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/region_mover.rb b/bin/region_mover.rb
index 5405541..3fe9394 100644
--- a/bin/region_mover.rb
+++ b/bin/region_mover.rb
@@ -88,7 +88,7 @@ def getServerNameForRegion(admin, r)
     server = result.getValue(HConstants::CATALOG_FAMILY, 
HConstants::SERVER_QUALIFIER)
     startcode = result.getValue(HConstants::CATALOG_FAMILY, 
HConstants::STARTCODE_QUALIFIER)
     return nil unless server
-    return java.lang.String.new(Bytes.toString(server)).replaceFirst(":", ",") 
 + "," + Bytes.toLong(startcode).to_s
+    return ServerName.getServerName(Bytes.toString(server), 
Bytes.toLong(startcode))
   ensure
     table.close()
   end

Reply via email to