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

Attempt to fix #4286 by putting a sync lock around the service loader. #5170

Merged
merged 1 commit into from
Aug 29, 2019

Conversation

sjrd218
Copy link
Contributor

@sjrd218 sjrd218 commented Aug 19, 2019

The ServiceLoader class is not thread safe, so the behavior can be non-deterministic if multiple threads try to access the method.

The reported issue is not regularly reproducible, but I have seen the error enough to try to address it with this sync lock.

@sjrd218 sjrd218 requested a review from gschueler August 19, 2019 17:02
@sjrd218 sjrd218 added this to the 3.1.1 milestone Aug 29, 2019
@sjrd218 sjrd218 merged commit 1659dd8 into master Aug 29, 2019
@sjrd218 sjrd218 deleted the issue/4286 branch August 29, 2019 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants