HBASE-8044 split/flush/compact/major_compact from hbase shell does not work for region key with \x format (Tianying)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1455355 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-03-11 22:55:38 +00:00
parent ffc8e66a57
commit 16c7c1e769
1 changed files with 7 additions and 7 deletions

View File

@ -1116,7 +1116,7 @@ public class HBaseAdmin implements Abortable, Closeable {
*/
public void closeRegion(final String regionname, final String serverName)
throws IOException {
closeRegion(Bytes.toBytes(regionname), serverName);
closeRegion(Bytes.toBytesBinary(regionname), serverName);
}
/**
@ -1234,7 +1234,7 @@ public class HBaseAdmin implements Abortable, Closeable {
*/
public void flush(final String tableNameOrRegionName)
throws IOException, InterruptedException {
flush(Bytes.toBytes(tableNameOrRegionName));
flush(Bytes.toBytesBinary(tableNameOrRegionName));
}
/**
@ -1303,7 +1303,7 @@ public class HBaseAdmin implements Abortable, Closeable {
*/
public void compact(final String tableNameOrRegionName)
throws IOException, InterruptedException {
compact(Bytes.toBytes(tableNameOrRegionName));
compact(Bytes.toBytesBinary(tableNameOrRegionName));
}
/**
@ -1330,7 +1330,7 @@ public class HBaseAdmin implements Abortable, Closeable {
*/
public void compact(String tableOrRegionName, String columnFamily)
throws IOException, InterruptedException {
compact(Bytes.toBytes(tableOrRegionName), Bytes.toBytes(columnFamily));
compact(Bytes.toBytesBinary(tableOrRegionName), Bytes.toBytes(columnFamily));
}
/**
@ -1357,7 +1357,7 @@ public class HBaseAdmin implements Abortable, Closeable {
*/
public void majorCompact(final String tableNameOrRegionName)
throws IOException, InterruptedException {
majorCompact(Bytes.toBytes(tableNameOrRegionName));
majorCompact(Bytes.toBytesBinary(tableNameOrRegionName));
}
/**
@ -1664,7 +1664,7 @@ public class HBaseAdmin implements Abortable, Closeable {
*/
public void split(final String tableNameOrRegionName)
throws IOException, InterruptedException {
split(Bytes.toBytes(tableNameOrRegionName));
split(Bytes.toBytesBinary(tableNameOrRegionName));
}
/**
@ -1682,7 +1682,7 @@ public class HBaseAdmin implements Abortable, Closeable {
public void split(final String tableNameOrRegionName,
final String splitPoint) throws IOException, InterruptedException {
split(Bytes.toBytes(tableNameOrRegionName), Bytes.toBytes(splitPoint));
split(Bytes.toBytesBinary(tableNameOrRegionName), Bytes.toBytesBinary(splitPoint));
}
/**