From a19f4f9a4a029f75e8012e9e8494507ea612ec68 Mon Sep 17 00:00:00 2001 From: Peter Somogyi Date: Fri, 3 Jan 2020 15:37:27 +0100 Subject: [PATCH] HBASE-23642 Reintroduce ReplicationUtils.contains as deprecated --- .../hadoop/hbase/replication/ReplicationUtils.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationUtils.java b/hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationUtils.java index 7cfb9d4ca7e6..fb2b0d517d82 100644 --- a/hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationUtils.java +++ b/hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationUtils.java @@ -134,6 +134,18 @@ public static boolean isReplicationForBulkLoadDataEnabled(final Configuration c) HConstants.REPLICATION_BULKLOAD_ENABLE_DEFAULT); } + /** + * @deprecated Will be removed in HBase 3. + * Use {@link ReplicationPeerConfig#needToReplicate(TableName)} instead. + * @param peerConfig configuration for the replication peer cluster + * @param tableName name of the table + * @return true if the table need replicate to the peer cluster + */ + @Deprecated + public static boolean contains(ReplicationPeerConfig peerConfig, TableName tableName) { + return peerConfig.needToReplicate(tableName); + } + /** * Get the adaptive timeout value when performing a retry */