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

Make EngineUrlStreamHandlerFactory safe wrt to changes in JDK15+ #2676

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

aziemchawdhary-gs
Copy link
Contributor

TreeMap implementation has been changed in Java 15 to optimize some functions. As a result running embedded service executions concurrently in the same JVM can now throw concurrent modification exceptions when running on JVM 15 onwards.
Note that TreeMap has never been threadsafe - just that exceptions are now thrown on Java 15 onwards.

Switching to a threadsafe map implementation to avoid exceptions being thrown for concurrent executions of the same service on the same JVM.

References:
https://www.oracle.com/java/technologies/javase/15-relnote-issues.html
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8227666
https://hg.openjdk.org/jdk/jdk/rev/65b345254ca3

Copy link
Contributor

@davidharte-gs davidharte-gs left a comment

Choose a reason for hiding this comment

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

Can we add a failing concurrency test?

@aziemchawdhary-gs aziemchawdhary-gs marked this pull request as ready for review March 6, 2024 10:57
@aziemchawdhary-gs aziemchawdhary-gs merged commit c3fb73c into finos:master Mar 7, 2024
4 checks passed
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.

3 participants