]> source.dussan.org Git - sonarqube.git/commit
Fix shutdown of server after DB migration
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 11 Feb 2016 17:14:52 +0000 (18:14 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 11 Feb 2016 17:15:47 +0000 (18:15 +0100)
commit54cdd41e77bf99b81134435499219eaef4862525
tree6b301d2bcd29166b9edc6d005c1c6a84bfc6ddf0
parentdf6129a0913277db1ec8f8ac4b9cc0303b8c9c25
Fix shutdown of server after DB migration

When a DB migration is required, two containers are up at the same
time ("safemode" and "level 2"). This is not handled by ComponentContainer,
so one of the two children is badly dereferenced and can't be stopped.
server/sonar-server/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel.java
server/sonar-server/src/test/java/org/sonar/server/computation/container/ComputeEngineContainerImplTest.java
sonar-core/src/main/java/org/sonar/core/platform/ComponentContainer.java
sonar-core/src/test/java/org/sonar/core/platform/ComponentContainerTest.java