]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7422 reset App sharedMemory at start/restart 989/head
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Tue, 17 May 2016 12:56:53 +0000 (14:56 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 18 May 2016 09:33:46 +0000 (11:33 +0200)
server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java

index 8a28dcfb4306d88580f8795f35c6c3812abf8359..6b62cafd60c162e5f5f868cb90a2c89487ed15fb 100644 (file)
@@ -31,9 +31,12 @@ import org.slf4j.LoggerFactory;
 import org.sonar.process.DefaultProcessCommands;
 import org.sonar.process.Lifecycle;
 import org.sonar.process.Lifecycle.State;
+import org.sonar.process.ProcessId;
 import org.sonar.process.ProcessUtils;
 import org.sonar.process.SystemExit;
 
+import static org.sonar.process.DefaultProcessCommands.reset;
+
 public class Monitor {
 
   private static final Logger LOG = LoggerFactory.getLogger(Monitor.class);
@@ -123,6 +126,8 @@ public class Monitor {
       // failed to reset FileSystem
       throw new RuntimeException("Failed to reset file system", e);
     }
+    // reset sharedmemory of App
+    reset(fileSystem.getTempDir(), ProcessId.APP.getIpcIndex());
   }
 
   private void closeJavaLauncher() {