-
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: Spy creation sporadically fails in some tests and causes Mockito misuse warning #13620
Comments
Related to #13570 . That issue contained several issues, including this one. |
reopening based on feedback from @gaozhangmin. It looks like PowerMock could be the culprit. @nicoloboschi WDYT?
|
@gaozhangmin I created a workaround for the NPE in #14006 . @nicoloboschi has a plan to send a PR for replacing PowerMock usage with Mockito's built-in support for mocking static methods. It's possible that PowerMock is one source of problems. |
There were multiple issues and some were resolved. However, there are still some open issues with Mockito. I'll reopen this issue once more. |
More failures in this report: https://github.com/lhotari/pulsar-flakes/blob/master/2022-01-27-to-2022-02-03/org.apache.pulsar.broker.service.PersistentTopicTest.setup.md listed under org.apache.pulsar.broker.service.PersistentTopicTest.setup in the most recent flaky test report. |
also https://github.com/lhotari/pulsar-flakes/blob/master/2022-01-27-to-2022-02-03/org.apache.pulsar.broker.service.persistent.PersistentTopicStreamingDispatcherTest.setup.md |
The issue had no activity for 30 days, mark with Stale label. |
|
@lhotari there are plenty of async task in plusar, for instance metadata event process pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java Lines 1949 to 1958 in 577c2dc
maybe we can pending these async tasks util stub defined, do you have a better solution for the problem? |
The issue had no activity for 30 days, mark with Stale label. |
The issue had no activity for 30 days, mark with Stale label. |
Recent failure https://github.com/apache/pulsar/actions/runs/3957519115/jobs/6778165658#step:11:1013
|
@wuxuanqicn I have dealt with the issue in #19323, please review |
Mockito spy creation fails sporadically and causes an exception and Mockito misuse warning:
example failure
The text was updated successfully, but these errors were encountered: