Skip to content

Commit

Permalink
HBASE-23642 Reintroduce ReplicationUtils.contains as deprecated (#983)
Browse files Browse the repository at this point in the history
Signed-off-by: Wellington Chevreuil <[email protected]>
Signed-off-by: Viraj Jasani <[email protected]>
Signed-off-by: stack <[email protected]>
Signed-off-by: Jan Hentschel <[email protected]>
  • Loading branch information
petersomogyi committed Jan 4, 2020
1 parent b54a4df commit 24a1b14
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 24a1b14

Please sign in to comment.