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>
This commit is contained in:
parent
085450ba4e
commit
3f646d8a81
|
@ -134,6 +134,18 @@ public final class ReplicationUtils {
|
|||
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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue