This is an automated email from the ASF dual-hosted git repository.

psomogyi pushed a commit to branch branch-2.2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.2 by this push:
     new 89b6453  HBASE-23642 Reintroduce ReplicationUtils.contains as 
deprecated (#983)
89b6453 is described below

commit 89b6453b91398d3ecba6107d682482752e5c8dd4
Author: Peter Somogyi <[email protected]>
AuthorDate: Sat Jan 4 12:14:19 2020 +0100

    HBASE-23642 Reintroduce ReplicationUtils.contains as deprecated (#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]>
---
 .../apache/hadoop/hbase/replication/ReplicationUtils.java    | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git 
a/hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationUtils.java
 
b/hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationUtils.java
index 7cfb9d4..fb2b0d5 100644
--- 
a/hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationUtils.java
+++ 
b/hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationUtils.java
@@ -135,6 +135,18 @@ public final class ReplicationUtils {
   }
 
   /**
+   * @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
    */
   public static int getAdaptiveTimeout(final int initialValue, final int 
retries) {

Reply via email to