-
Notifications
You must be signed in to change notification settings - Fork 853
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
added
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
labels
Oct 15, 2024
12 tasks
@sk-br can you share the full stacktrace, please? |
debora-ito
added
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.
p2
This is a standard priority issue
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Oct 15, 2024
Here your are:
|
github-actions
bot
removed
the
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.
label
Oct 17, 2024
@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. |
debora-ito
added
the
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.
label
Oct 17, 2024
I used the following:
The exception is the same when I use |
github-actions
bot
removed
the
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.
label
Oct 18, 2024
I've got very similar looking stack trace running
On https://github.com/apache/flink
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: