Concurrent registration/iteration in PropertySourcesPropertyResolver [SPR-12428] #17034
Labels
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Spencer Gibb opened SPR-12428 and commented
While trying to call
PropertySourcesPropertyResolver.containsProperty
from one thread, another thread has added a newPropertySource
and then theConcurrentModificationException
is thrown.This code in Spring Boot adds the property source in a
ContextRefreshedEvent
handler. https://github.com/spring-projects/spring-boot/blob/master/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcAutoConfiguration.java#L228Affects: 4.0.7
Reference URL: spring-cloud/spring-cloud-netflix#25
Issue Links:
Referenced from: commits 2490d1b, 1ef06cc
Backported to: 4.0.9
The text was updated successfully, but these errors were encountered: