Skip to content

Commit 89b6453

Browse files
committed
HBASE-23642 Reintroduce ReplicationUtils.contains as deprecated (#983)
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org> Signed-off-by: stack <stack@apache.org> Signed-off-by: Jan Hentschel <janh@apache.org>
1 parent dbb74a5 commit 89b6453

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationUtils.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,18 @@ public static boolean isReplicationForBulkLoadDataEnabled(final Configuration c)
134134
HConstants.REPLICATION_BULKLOAD_ENABLE_DEFAULT);
135135
}
136136

137+
/**
138+
* @deprecated Will be removed in HBase 3.
139+
* Use {@link ReplicationPeerConfig#needToReplicate(TableName)} instead.
140+
* @param peerConfig configuration for the replication peer cluster
141+
* @param tableName name of the table
142+
* @return true if the table need replicate to the peer cluster
143+
*/
144+
@Deprecated
145+
public static boolean contains(ReplicationPeerConfig peerConfig, TableName tableName) {
146+
return peerConfig.needToReplicate(tableName);
147+
}
148+
137149
/**
138150
* Get the adaptive timeout value when performing a retry
139151
*/

0 commit comments

Comments
 (0)