Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7384

SonarQube sometimes does not stop when stopped by Orchestrator

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4
    • Component/s: None
    • Labels:
      None

      Description

      Problem occurred on at least one QA job.
      Logs was as followed:

      12:34:56 2016.02.22 12:34:56 INFO  app[o.s.p.m.Monitor] Process[web] is up
      12:34:56 [INFO] Sonar is started
      12:34:57 [INFO] Stop sonar
      12:34:58 2016.02.22 12:34:58 INFO  app[o.s.p.m.Monitor] Process[web] is stopping
      12:34:58 2016.02.22 12:34:58 INFO  web[o.s.p.StopWatcher] Stopping process
      12:34:58 2016.02.22 12:34:58 INFO  web[o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-127.0.0.1-41454"]
      12:34:59 2016.02.22 12:34:59 INFO  web[o.s.s.n.NotificationService] Notification service stopped
      12:34:59 2016.02.22 12:34:59 INFO  web[o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-127.0.0.1-41454"]
      12:35:00 2016.02.22 12:35:00 INFO  web[o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-127.0.0.1-41454"]
      12:35:00 2016.02.22 12:35:00 INFO  web[o.s.s.a.TomcatAccessLog] Web server is stopped
      12:35:00 2016.02.22 12:35:00 INFO  app[o.s.p.m.Monitor] Process[web] is stopped
      12:35:00 2016.02.22 12:35:00 INFO  app[o.s.p.m.Monitor] Process[search] is stopping
      12:35:00 2016.02.22 12:35:00 INFO   es[o.s.p.StopWatcher]  Stopping process
      12:35:00 2016.02.22 12:35:00 INFO   es[o.elasticsearch.node]  [sonar-1456140832748] stopping ...
      12:35:00 2016.02.22 12:35:00 INFO   es[o.elasticsearch.node]  [sonar-1456140832748] stopped
      12:35:00 2016.02.22 12:35:00 INFO   es[o.elasticsearch.node]  [sonar-1456140832748] closing ...
      12:35:01 2016.02.22 12:35:00 INFO   es[o.elasticsearch.node]  [sonar-1456140832748] closed
      12:35:01 2016.02.22 12:35:01 INFO  app[o.s.p.m.Monitor] Process[search] is stopped
      

      and in thread dump, it appears that "Hard stop watcher" thread is waiting for itself to stop:

      17:28:24 "Hard stop watcher" prio=10 tid=0x00007f780c2cc800 nid=0x14bb1 in Object.wait() [0x00007f780675c000]
      17:28:24    java.lang.Thread.State: WAITING (on object monitor)
      17:28:24 	at java.lang.Object.wait(Native Method)
      17:28:24 	- waiting on <0x00000000ffe5a470> (a org.sonar.process.monitor.Monitor$HardStopWatcherThread)
      17:28:24 	at java.lang.Thread.join(Thread.java:1281)
      17:28:24 	- locked <0x00000000ffe5a470> (a org.sonar.process.monitor.Monitor$HardStopWatcherThread)
      17:28:24 	at java.lang.Thread.join(Thread.java:1355)
      17:28:24 	at org.sonar.process.monitor.Monitor.awaitTermination(Monitor.java:460)
      17:28:24 	at org.sonar.process.monitor.Monitor.awaitTermination(Monitor.java:449)
      17:28:24 	at org.sonar.process.monitor.Monitor.cleanAfterTermination(Monitor.java:235)
      17:28:24 	at org.sonar.process.monitor.Monitor.stop(Monitor.java:225)
      17:28:24 	at org.sonar.process.monitor.Monitor$HardStopWatcherThread.run(Monitor.java:350)
      

        Attachments

          Activity

            People

            • Assignee:
              sebastien.lesaint Sebastien Lesaint
              Reporter:
              sebastien.lesaint Sebastien Lesaint
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: