-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Flaky-test: AdvertisedListenersMultiBrokerLeaderElectionTest.shouldProvideConsistentAnswerToTopicLookupsUsingAdminApi #22239
Comments
mailing list thread https://lists.apache.org/thread/bdt274o7lcm0l106m91b7b849zj2cd6b |
I'm able to reproduce the issue by running the test in Docker with 1 CPU. Using shell script functions from https://github.com/lhotari/pulsar-contributor-toolbox/blob/master/functions/pulsar-contributor-toolbox-functions.sh and running
I'll check what causes the test to take longer than 60 seconds so that it times out. |
I did some profiling with async-profiler and it seems mainly about Mockito that shows up in profiling. |
I created #22250 to address the performance issue caused by Mockito in AdvertisedListenersMultiBrokerLeaderElectionTest . /cc @liangyepianzhou |
It's possible that OTel integration is somehow impacting the slowness together with the Mockito overhead. I happen to see these on the logs so that's why Otel came to mind. I didn't see Otel show up in CPU profiling.
|
@lhotari Thanks for the update. |
@liangyepianzhou please also review #22251 , that's a PR that will reduce the logging overhead in tests. Noticed that in profiling. |
Search before asking
Example failure
https://github.com/apache/pulsar/actions/runs/8226863359/job/22495219489?pr=22230#step:11:1567
Exception stacktrace
logs at https://gist.github.com/lhotari/85729c36d42d5d296dfb39178314aa53 .
Notice! This might be a real issue since the test is also testing that leader election doesn't starve.
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: