Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][test] Fix flaky test BrokerServiceAutoSubscriptionCreationTest #22190

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

Technoboy-
Copy link
Contributor

@Technoboy- Technoboy- commented Mar 4, 2024

Fixes #22188

Motivation

Error:  Tests run: 11, Failures: 1, Errors: 0, Skipped: 7, Time elapsed: 10.526 s <<< FAILURE! - in org.apache.pulsar.broker.service.BrokerServiceAutoSubscriptionCreationTest
  Error:  org.apache.pulsar.broker.service.BrokerServiceAutoSubscriptionCreationTest.testDynamicConfigurationTopicAutoSubscriptionCreation  Time elapsed: 0.193 s  <<< FAILURE!
  org.apache.pulsar.client.api.PulsarClientException: java.util.concurrent.ExecutionException: org.apache.pulsar.client.api.PulsarClientException$SubscriptionNotFoundException: {"errorMsg":"Subscription does not exist","reqId":1263382438898186087, "remote":"localhost/127.0.0.1:39313", "local":"/127.0.0.1:55306"}
  	at org.apache.pulsar.client.api.PulsarClientException.unwrap(PulsarClientException.java:1131)
  	at org.apache.pulsar.client.impl.ConsumerBuilderImpl.subscribe(ConsumerBuilderImpl.java:103)
  	at org.apache.pulsar.broker.service.BrokerServiceAutoSubscriptionCreationTest.testDynamicConfigurationTopicAutoSubscriptionCreation(BrokerServiceAutoSubscriptionCreationTest.java:169)
  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
  	at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:139)
  	at org.testng.internal.invokers.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:47)
  	at org.testng.internal.invokers.InvokeMethodRunnable.call(InvokeMethodRunnable.java:76)
  	at org.testng.internal.invokers.InvokeMethodRunnable.call(InvokeMethodRunnable.java:11)
  	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
  	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
  	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
  	at java.base/java.lang.Thread.run(Thread.java:840)
  Caused by: java.util.concurrent.ExecutionException: org.apache.pulsar.client.api.PulsarClientException$SubscriptionNotFoundException: {"errorMsg":"Subscription does not exist","reqId":12633824388[981](https://github.com/apache/pulsar/actions/runs/8136935185/job/22242361032?pr=22184#step:11:982)86087, "remote":"localhost/127.0.0.1:39313", "local":"/127.0.0.1:55306"}
  	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
  	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
  	at org.apache.pulsar.client.impl.ConsumerBuilderImpl.subscribe(ConsumerBuilderImpl.java:101)
  	... 13 more
  Caused by: org.apache.pulsar.client.api.PulsarClientException$SubscriptionNotFoundException: {"errorMsg":"Subscription does not exist","reqId":1263382438898186087, "remote":"localhost/127.0.0.1:39313", "local":"/127.0.0.1:55306"}
  	at org.apache.pulsar.client.impl.ClientCnx.getPulsarClientException(ClientCnx.java:1340)

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@Technoboy- Technoboy- added this to the 3.3.0 milestone Mar 4, 2024
@Technoboy- Technoboy- closed this Mar 4, 2024
@Technoboy- Technoboy- reopened this Mar 4, 2024
@Technoboy- Technoboy- self-assigned this Mar 4, 2024
@Technoboy- Technoboy- added the doc-not-needed Your PR changes do not impact docs label Mar 4, 2024
Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Technoboy- Technoboy- merged commit 8c7c978 into apache:master Mar 4, 2024
73 of 79 checks passed
lhotari pushed a commit that referenced this pull request Mar 28, 2024
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 15, 2024
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 17, 2024
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 17, 2024
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 19, 2024
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky-test: BrokerServiceAutoSubscriptionCreationTest.testDynamicConfigurationTopicAutoSubscriptionCreation
4 participants