-
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: ClassCastException in ExtensibleLoadManagerImpl.checkOwnershipAsync #21654
Comments
@heesung-sn @Demogorgon314 would you mind checking this exception? |
Location of the ClassCastException could searched in the detailed logs. |
This might be an issue with Mockito. Mockito isn't threadsafe in all possible ways. It's documented here how Mockito should be used: https://github.com/mockito/mockito/wiki/FAQ#is-mockito-thread-safe . Previously we have had issues #13620 and #13570 . |
ExtensibleLoadManagerImplTest also uses org.mockito.MockedStatic . The javadoc of that says "The mocking only affects the thread on which this static mock was created and it is not safe to use this object from another thread.". |
Hi, I will check this. |
Raised a PR to remove the static mock. #21668 |
Search before asking
Example failures
Exception stacktrace
The text was updated successfully, but these errors were encountered: