From 6563749a4c2222af9c00cb36a336933d5d19e8db Mon Sep 17 00:00:00 2001 From: rajeshbabu Date: Sat, 8 Mar 2014 18:04:30 +0000 Subject: [PATCH] HBASE-8076 add better doc for HBaseAdmin#offline API.(Rajesh) git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1575580 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/hadoop/hbase/client/HBaseAdmin.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java index 27e973ba7af..409d274d2dc 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java @@ -1754,7 +1754,16 @@ public class HBaseAdmin implements Abortable, Closeable { } /** - * Special method, only used by hbck. + * Offline specified region from master's in-memory state. It will not attempt to reassign the + * region as in unassign. This API can be used when a region not served by any region server and + * still online as per Master's in memory state. If this API is incorrectly used on active region + * then master will loose track of that region. + * + * This is a special method that should be used by experts or hbck. + * + * @param regionName + * Region to offline. + * @throws IOException */ public void offline(final byte [] regionName) throws IOException {