HBASE-3314 [shell] 'move' is broken

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1042771 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2010-12-06 20:00:55 +00:00
parent 564b9d08c0
commit 9bb903da97
2 changed files with 4 additions and 3 deletions

View File

@ -744,6 +744,7 @@ Release 0.90.0 - Unreleased
HBASE-3304 Get spurious master fails during bootup
HBASE-3298 Regionserver can close during a split causing double assignment
HBASE-3309 " Not running balancer because dead regionserver processing" is a lie
HBASE-3314 [shell] 'move' is broken
IMPROVEMENTS

View File

@ -167,19 +167,19 @@ module Hbase
#----------------------------------------------------------------------------------------------
# Assign a region
def assign(region_name, force)
@admin.assign(Bytes::toBytes(region_name), java.lang.Boolean::valueOf(force))
@admin.assign(Bytes.toBytes(region_name), java.lang.Boolean::valueOf(force))
end
#----------------------------------------------------------------------------------------------
# Unassign a region
def unassign(region_name, force)
@admin.unassign(Bytes::toBytes(region_name), java.lang.Boolean::valueOf(force))
@admin.unassign(Bytes.toBytes(region_name), java.lang.Boolean::valueOf(force))
end
#----------------------------------------------------------------------------------------------
# Move a region
def move(encoded_region_name, server = nil)
@admin.move(encoded_region_name, server ? [server].to_java: nil)
@admin.move(Bytes.toBytes(encoded_region_name), server ? Bytes.toBytes(server): nil)
end
#----------------------------------------------------------------------------------------------