codelipenghui commented on code in PR #20739:
URL: https://github.com/apache/pulsar/pull/20739#discussion_r1258012728
##########
pulsar-proxy/src/test/java/org/apache/pulsar/proxy/server/ProxyTest.java:
##########
@@ -259,6 +259,34 @@ public void testRegexSubscription() throws Exception {
}
}
+ @Test(timeOut = 60_000)
+ public void testRegexSubscriptionWithTopicDiscovery() throws Exception {
+ @Cleanup
+ PulsarClient client =
PulsarClient.builder().serviceUrl(proxyService.getServiceUrl()).build();
+ String subName = "regex-proxy-test-" + System.currentTimeMillis();
+ String regexSubscriptionPattern = "persistent://sample/test/local/.*";
+ try (Consumer<byte[]> consumer = client.newConsumer()
+ .topicsPattern(regexSubscriptionPattern)
+ .subscriptionName(subName)
+
.subscriptionInitialPosition(SubscriptionInitialPosition.Earliest)
+ .patternAutoDiscoveryPeriod(10, TimeUnit.MINUTES)
Review Comment:
Interesting, it looks like we don't have a way to disable the auto-discovery
task. We should have a way to disable it since we have topic list watcher after
3.0.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]