sandeepvinayak commented on a change in pull request #3347:
URL: https://github.com/apache/hbase/pull/3347#discussion_r643611673
##########
File path:
hbase-server/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationEndpoint.java
##########
@@ -296,6 +300,53 @@ public boolean evaluate() throws Exception {
hbaseAdmin.removeReplicationPeer("testWALEntryFilterFromReplicationEndpoint");
}
+ @Test
+ public void testNamespacesMutualExclusiveScopesWALEntryFilter() throws
Exception {
+ Set<String> namespaces = new HashSet<String>();
+ namespaces.add("default");
+ ReplicationPeerConfig rpc = ReplicationPeerConfig.newBuilder()
+ .setClusterKey(ZKConfig.getZooKeeperClusterKey(CONF1))
+
.setReplicationEndpointImpl(SelfWrappedReplicationEndpointForTest.class.getName())
+ .setReplicateAllUserTables(false)
+ // sets namespaces
+ .setNamespaces(namespaces).build();
+
hbaseAdmin.addReplicationPeer("testNamespacesMutualExclusiveScopesWALEntryFilter",
rpc);
Review comment:
mind making `testNamespacesMutualExclusiveScopesWALEntryFilter` a
constant string in the test?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]