diff --git a/CHANGES.txt b/CHANGES.txt index d31af42e56e..23e85544047 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -108,6 +108,8 @@ Release 0.91.0 - Unreleased MiniZooKeeperCluster for test writing (Liyin Tang via Stack) HBASE-3696 isMajorCompaction() check triggers lots of listStatus DFS RPC calls from HBase (Liyin Tang via Stack) + HBASE-3717 deprecate HTable isTableEnabled() methods in favor of + HBaseAdmin methods (David Butler via Stack) TASK HBASE-3559 Move report of split to master OFF the heartbeat channel diff --git a/src/main/java/org/apache/hadoop/hbase/client/HTable.java b/src/main/java/org/apache/hadoop/hbase/client/HTable.java index e7f8b072f8e..5c9310eed82 100644 --- a/src/main/java/org/apache/hadoop/hbase/client/HTable.java +++ b/src/main/java/org/apache/hadoop/hbase/client/HTable.java @@ -223,7 +223,9 @@ public class HTable implements HTableInterface { * @param tableName Name of table to check. * @return {@code true} if table is online. * @throws IOException if a remote or network exception occurs + * @deprecated use {@link HBaseAdmin#isTableEnabled(byte[])} */ + @Deprecated public static boolean isTableEnabled(String tableName) throws IOException { return isTableEnabled(Bytes.toBytes(tableName)); } @@ -233,7 +235,9 @@ public class HTable implements HTableInterface { * @param tableName Name of table to check. * @return {@code true} if table is online. * @throws IOException if a remote or network exception occurs + * @deprecated use {@link HBaseAdmin#isTableEnabled(byte[])} */ + @Deprecated public static boolean isTableEnabled(byte[] tableName) throws IOException { return isTableEnabled(HBaseConfiguration.create(), tableName); } @@ -244,7 +248,9 @@ public class HTable implements HTableInterface { * @param tableName Name of table to check. * @return {@code true} if table is online. * @throws IOException if a remote or network exception occurs + * @deprecated use {@link HBaseAdmin#isTableEnabled(byte[])} */ + @Deprecated public static boolean isTableEnabled(Configuration conf, String tableName) throws IOException { return isTableEnabled(conf, Bytes.toBytes(tableName));