]> source.dussan.org Git - sonarqube.git/commit
add node state FINALIZE_STOPPING to sync stop finalizing code
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 5 Sep 2019 10:27:17 +0000 (12:27 +0200)
committerSonarTech <sonartech@sonarsource.com>
Fri, 6 Sep 2019 18:21:05 +0000 (20:21 +0200)
commit0a49bc18a94656ee6cd6e70e17bb60d49f3622a3
treecd865bfa1c5ce15b0dd6141426cf69f4d4352150
parent705dae5d113eb2d3acf2f0387e9779af701cf47b
add node state FINALIZE_STOPPING to sync stop finalizing code

this prevents concurrent threads to shutdown each other
this removes a test on NodeLifecycle.getState() which could be unthreadsafe and keep all lifeCycle logic in NodeLifecycle class
server/sonar-main/src/main/java/org/sonar/application/NodeLifecycle.java
server/sonar-main/src/main/java/org/sonar/application/SchedulerImpl.java
server/sonar-main/src/test/java/org/sonar/application/NodeLifecycleTest.java