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

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


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

commit 6f0724a8ffb4592877c9d9d3269268b313f26469
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