]> source.dussan.org Git - sonarqube.git/commit
SONAR-7168 fix HardStopWatcher support for external restart
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Mon, 25 Jan 2016 13:55:01 +0000 (14:55 +0100)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Mon, 25 Jan 2016 13:55:01 +0000 (14:55 +0100)
commitb7995949819d15f9c28a9fde36dcc87864419a89
tree8d36e099031cdb5cbeaad45ff8c7076c9e1a5e22
parented6f219718bdc9c6435e0cd32e4aa81d558fc302
SONAR-7168 fix HardStopWatcher support for external restart

when SQ instance is restarted by another process (eg. orchestrator) which does not clean the temp directory before restarting, the HardStopWatcher of the newly started SQ will detect the stop flag targeted at the previous SQ and immediatly shutdown the App JVM but let the two child JVM process up
to avoid this, the HardStopWatcher is now created only after the temp directory has been reset by the App process
server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java