-
Notifications
You must be signed in to change notification settings - Fork 873
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
ConcurrentModificationException in OpenRewrite recipe #5666
Comments
@sk-br can you share the full stacktrace, please? |
Here your are:
|
@sk-br Thank you for providing all the info so far. I'm sorry, we have one more question: what's the actual mvn command you used? We are interested in the options used in the command. |
I used the following:
The exception is the same when I use |
I've got very similar looking stack trace running
On https://github.com/apache/flink
|
PR #5665 was merged and released in Java SDK version Please test it out and let us know if the issue persists. |
I can confirm
Generates a patch file. Thanks. |
Thank you for the follow-up @SamBarker |
Describe the bug
The (dry-)run of the OpenRewrite recipe crashes at our multi module maven project.
Regression Issue
Expected Behavior
The (dry-)run of the OpenRewrite recipe should terminate successfully.
Current Behavior
It breaks throwing a ConcurrentModificationException at
software.amazon.awssdk.v2migration.ChangeSdkType$ChangeTypeVisitor.postVisitSourceFile(ChangeSdkType.java:208)
Reproduction Steps
Run the script on a multi module project, where multiple modules use the AWS SDK.
Possible Solution
Use a
ConcurrentHashMap
instead of a normalHashMap
- see #5665Additional Information/Context
Maven version: 3.9.6 (regular maven, not mvnd)
AWS Java SDK version used
2.28.19-PREVIEW
JDK version used
OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7)
Operating System and version
MacOS 14.6.1
The text was updated successfully, but these errors were encountered: