spring-boot/spring-boot-project
Andy Wilkinson f17f1255a4 Do not change availability on close unless context is active
Previously, an AvailabilityChangeEvent was published when the servlet
and reactive web server application contexts were closed, irrespective
of whether or not the context was active. This caused problems when
the context was not active due to a refresh failure as the event
publication could then trigger bean creation and post-processing that
relied upon beans that had been destroyed when cleaning up after the
refresh failure. The most commonly seen symptom was a missing
importRegistry bean that is required by ImportAwareBeanPostProcessor.

This commit updates the two web server application contexts to only
publish the availability change event if the context is active.

Fixes gh-21588
2020-05-27 20:05:45 +01:00
..
spring-boot Do not change availability on close unless context is active 2020-05-27 20:05:45 +01:00
spring-boot-actuator Merge branch '2.2.x' 2020-05-25 13:52:10 +02:00
spring-boot-actuator-autoconfigure Map connection and read timeouts for New Relic again 2020-05-26 15:20:33 +02:00
spring-boot-autoconfigure Upgrade to Testcontainers 1.14.2 2020-05-27 14:49:09 +02:00
spring-boot-cli Fix file permissions in the CLI's zip and tar distributions 2020-05-14 15:55:38 +01:00
spring-boot-dependencies Fix dependency management for Kafka 2020-05-27 16:11:24 +02:00
spring-boot-devtools
spring-boot-docs Document health probes config property in Actuator section 2020-05-22 22:23:41 +02:00
spring-boot-parent Upgrade to Testcontainers 1.14.2 2020-05-27 14:49:09 +02:00
spring-boot-properties-migrator
spring-boot-starters Merge branch '2.2.x' 2020-05-25 15:30:43 +02:00
spring-boot-test
spring-boot-test-autoconfigure Upgrade to Testcontainers 1.14.2 2020-05-27 14:49:09 +02:00
spring-boot-tools Configure attributes on productionRuntimeClasspath 2020-05-26 15:12:21 +01:00