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:
parent
ca7ccb95b0
commit
19cdd6d4c9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue