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:
Peter Somogyi 2020-01-04 12:14:19 +01:00 committed by GitHub
parent 085450ba4e
commit 3f646d8a81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

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