HBase shell move and online may be unusable if region name or server includes binary-encoded data
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1155164 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a3292a1a7f
commit
22a27b8d28
|
@ -408,6 +408,12 @@ Release 0.91.0 - Unreleased
|
|||
HBASE-2233 Support both Hadoop 0.20 and 0.22
|
||||
HBASE-3857 Change the HFile Format (Mikhail & Liyin)
|
||||
|
||||
Release 0.90.5 - Unreleased
|
||||
|
||||
BUG FIXES
|
||||
HBASE-4160 HBase shell move and online may be unusable if region name
|
||||
or server includes binary-encoded data (Jonathan Hsieh)
|
||||
|
||||
Release 0.90.4 - Unreleased
|
||||
|
||||
BUG FIXES
|
||||
|
|
|
@ -231,7 +231,7 @@ module Hbase
|
|||
#----------------------------------------------------------------------------------------------
|
||||
# Move a region
|
||||
def move(encoded_region_name, server = nil)
|
||||
@admin.move(org.apache.hadoop.hbase.util.Bytes.toBytes(encoded_region_name), server ? org.apache.hadoop.hbase.util.Bytes.toBytes(server): nil)
|
||||
@admin.move(encoded_region_name.to_java_bytes, server ? server.to_java_bytes: nil)
|
||||
end
|
||||
|
||||
#----------------------------------------------------------------------------------------------
|
||||
|
@ -435,7 +435,7 @@ module Hbase
|
|||
|
||||
# Read region info
|
||||
# FIXME: fail gracefully if can't find the region
|
||||
region_bytes = org.apache.hadoop.hbase.util.Bytes.toBytes(region_name)
|
||||
region_bytes = region_name.to_java_bytes
|
||||
g = org.apache.hadoop.hbase.client.Get.new(region_bytes)
|
||||
g.addColumn(org.apache.hadoop.hbase.HConstants::CATALOG_FAMILY, org.apache.hadoop.hbase.HConstants::REGIONINFO_QUALIFIER)
|
||||
hri_bytes = meta.get(g).value
|
||||
|
|
Loading…
Reference in New Issue