• Andy Wilkinson's avatar
    Ensure that background preinit has completed before refresh returns · 992e90f4
    Andy Wilkinson authored
    This commit is a continuation of the changes made in b85b6082. It
    addresses an additional problem when testing applications where two
    contexts are refreshed in quick succession. In this scenario, it
    was possible, theoretically at least, for the first context’s background preinitialization to still be in progress and creating loggers when the
    second is refreshed and resets the logger context.
    
    This commit updates BackgroundPreinitializer so that, upon receipt of
    a ContextRefreshedEvent, it waits for preinitialization to have
    completed. In the scenario described above, this ensures that
    preinitialization has completed before the call to refresh() for the
    first context returns, thereby preventing it from running in parallel
    with the refresh of the second context.
    
    Closes gh-4871
    992e90f4
Name
Last commit
Last update
.mvn Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...