-
Notifications
You must be signed in to change notification settings - Fork 38.5k
FactoryBeanRegistrySupport atomicity issues [SPR-16625] #21166
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
Comments
Juergen Hoeller commented Good catch, this may indeed lead to race conditions in on-the-fly removal during live operations. I've revised the code accordingly, inspired by your pull request but somewhat more extensively: including |
László Magyar commented Juergen, please check my other created ticket and it's PR, it is related to this maybe. |
László Magyar commented I've checked the code. |
Juergen Hoeller commented I see, your concern there is effectively the singleton nature of the given Initially I only looked at it from the perspective of receiving an outdated instance there which is guaranteed to not happen with the synchronized removal from both data structures in |
Juergen Hoeller commented I've added another |
László Magyar opened SPR-16625 and commented
Within org.springframework.beans.factory.support.FactoryBeanRegistrySupport found some issues with atomic operation.
Please check PR.
Affects: 4.3.14, 5.0.4
Issue Links:
DefaultSingletonBeanRegistry
[SPR-16620] #21161 Consistent thread-safe iteration in DefaultSingletonBeanRegistryReferenced from: pull request #1749
Backported to: 4.3.15
The text was updated successfully, but these errors were encountered: