-
Notifications
You must be signed in to change notification settings - Fork 218
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 inside getSecondaryResources #2567
Comments
Unfortunately, baring a JDK bug, I don't see anything in the code that would cause this problem since these operations are read-only. Let us know if you manage to replicate the issue with some additional context, please. |
I'm not sure I can replicate it easily. But I think I can easily demonstrate the underlying issue.
|
OK so the issue would happen when your |
This reconciler is "managed", in the sense that dependent resources are added through annotations. No event sources for this reconciler are initialized manually. This reconciler does however have six dependent resources with activation conditions, including the dependent resource whose AbstractWorkflowExecutor::registerOrDeregisterEventSourceBasedOnActivation EventSourceManager::dynamicallyRegisterEventSource |
Yes, event sources are added dynamically with activation condition, this will be the issue |
Added fix for both main and v5, pls take a look if it makes sense. |
Bug Report
What did you do?
Called
context.getSecondaryResources(resource)
insideResourceDiscriminator
.What did you expect to see?
Secondary resources.
What did you see instead? Under which circumstances?
Not sure the exact circumstances, but saw:
Environment
Kubernetes cluster type:
testing with kind via quarkus dev services.
io.quarkiverse.operatorsdk:quarkus-operator-sdk:6.7.2
io.javaoperatorsdk:operator-framework-core:4.9.2
Eclipse Temurin OpenJDK Runtime Environment 21.0.4+7-LTS
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: