]> source.dussan.org Git - sonarqube.git/commit
SONAR-7168 fix stop during restart not working
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Fri, 8 Jan 2016 17:01:57 +0000 (18:01 +0100)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 13 Jan 2016 12:42:43 +0000 (13:42 +0100)
commit5db076096966170cde636fa2c41d7777abca193e
tree650eb1d38a41d78f76f363ef3a748b785107d3ec
parent255e54d582d02ab72d1b33f440656fb2d5ae9f8c
SONAR-7168 fix stop during restart not working

lifeCycle transition from RESTARTING to STOPPING should actually _not_ be allowed because it can occur when restarting child processes (the WatcherThreads detects that stop and tries to shutdown all other processes), this fixes the issue by adding a HARD_STOPPING state, representing a not gracefull stop, to which transition from RESTARTING is allowed
adds class AllProcessesCommands which implements access to sharedMemory for any process and is now used as the underlying implementation of DefaultProcessCommands. This class allows using a single IO to access sharedMemory from App
17 files changed:
server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/JavaCommand.java
server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/JavaProcessLauncher.java
server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java
server/sonar-process-monitor/src/test/java/org/sonar/process/monitor/JavaCommandTest.java
server/sonar-process-monitor/src/test/java/org/sonar/process/monitor/JavaProcessLauncherTest.java
server/sonar-process-monitor/src/test/java/org/sonar/process/monitor/MonitorTest.java
server/sonar-process/src/main/java/org/sonar/process/AllProcessesCommands.java [new file with mode: 0644]
server/sonar-process/src/main/java/org/sonar/process/DefaultProcessCommands.java
server/sonar-process/src/main/java/org/sonar/process/Lifecycle.java
server/sonar-process/src/main/java/org/sonar/process/ProcessCommands.java
server/sonar-process/src/test/java/org/sonar/process/AllProcessesCommandsTest.java [new file with mode: 0644]
server/sonar-process/src/test/java/org/sonar/process/DefaultProcessCommandsTest.java
server/sonar-process/src/test/java/org/sonar/process/LifecycleTest.java
server/sonar-process/src/test/java/org/sonar/process/test/HttpProcess.java
server/sonar-server/src/main/java/org/sonar/server/platform/ws/RestartAction.java
sonar-application/src/main/java/org/sonar/application/App.java
sonar-application/src/test/java/org/sonar/application/AppTest.java