Skip to content

Commit

Permalink
HBASE-23642 Reintroduce ReplicationUtils.contains as deprecated (apac…
Browse files Browse the repository at this point in the history
…he#983)

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]>
(cherry picked from commit 89b6453)

Change-Id: I46a89657e1831a3cb70df0aa46282407c1248795
  • Loading branch information
petersomogyi authored and Jenkins committed Jan 4, 2020
1 parent f56b73d commit fc968bf
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 fc968bf

Please sign in to comment.