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

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


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

commit 19cdd6d4c91d619662599aabfcbe58ce82669356
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 eaca097..03b7c01 100644
--- a/bin/region_mover.rb
+++ b/bin/region_mover.rb
@@ -87,7 +87,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