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 */