You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ps...@apache.org on 2020/01/04 11:14:31 UTC
[hbase] branch branch-2 updated: HBASE-23642 Reintroduce
ReplicationUtils.contains as deprecated (#983)
This is an automated email from the ASF dual-hosted git repository.
psomogyi pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 3f646d8 HBASE-23642 Reintroduce ReplicationUtils.contains as deprecated (#983)
3f646d8 is described below
commit 3f646d8a81d6f8b02abdfdbf476c2e91749d9e54
Author: Peter Somogyi <ps...@apache.org>
AuthorDate: Sat Jan 4 12:14:19 2020 +0100
HBASE-23642 Reintroduce ReplicationUtils.contains as deprecated (#983)
Signed-off-by: Wellington Chevreuil <wc...@apache.org>
Signed-off-by: Viraj Jasani <vj...@apache.org>
Signed-off-by: stack <st...@apache.org>
Signed-off-by: Jan Hentschel <ja...@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) {