You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2019/06/20 22:25:56 UTC

[hbase] branch branch-1.4 updated: HBASE-22538 Prevent graceful_stop.sh from shutting down RS too early before finishing unloading regions (Jeongdae Kim)

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 <ap...@apache.org>
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 <ap...@apache.org>
---
 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