• Andy Wilkinson's avatar
    Perform background preinitialization after logging system setup · b85b6082
    Andy Wilkinson authored
    Previously, BackgroundPreinitializer would kick off preinitialization
    on a separate thread in response to an ApplicationStartedEvent. This
    work would then race with the logging system being set up in response
    to an ApplicationEnvironmentPreparedEvent. When Logback’s being used
    this race is problematic. As part of Logback’s setup,
    LoggerContext.stop() is called. This calls LoggerContext.reset() which
    can fail with a ConcurrentModificationException if another thread tries
    to create a Logger at the same time. This is a known bug in Logback [1].
    
    This commit updates BackgroundPreinitializer to respond to
    an ApplicationEnvironmentPreparedEvent and to order itself so that it’s
    called after LoggingApplicationListener has responded to the same event
    by initializing the logging system.
    
    Closes gh-4871
    
    [1] http://jira.qos.ch/browse/LOGBACK-397
    b85b6082
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...