hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psomo...@apache.org
Subject [hbase] branch branch-2.1 updated: HBASE-23642 Reintroduce ReplicationUtils.contains as deprecated (#983)
Date Sat, 04 Jan 2020 11:22:10 GMT
This is an automated email from the ASF dual-hosted git repository.

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


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

commit 24a1b14d6556febe585ec344e81789c4b9a4bd85
Author: Peter Somogyi <psomogyi@apache.org>
AuthorDate: Sat Jan 4 12:14:19 2020 +0100

    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>
---
 .../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) {


Mime
View raw message