HBASE-22538 Prevent graceful_stop.sh from shutting down RS too early before finishing unloading regions (Jeongdae Kim)

Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
Andrew Purtell 2019-06-20 15:24:06 -07:00
parent ca7ccb95b0
commit 19cdd6d4c9
No known key found for this signature in database
GPG Key ID: 8597754DD5365CCD
1 changed files with 1 additions and 1 deletions

View File

@ -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