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

Remove useless error log when forcefully stopping the Compute Engine

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2, 5.3, 5.4
    • Fix Version/s: 6.4
    • Component/s: Compute Engine
    • Labels:

      Description

      One can forcefully stop the Compute Engine while a task is still running.

      Steps to reproduce:

      1. Launch the analysis of a big project
      2. As soon as the project is being processed by CE, request a stop of SQ (sonar.sh stop)

      You get the error log

      TERM
      2016.03.25 17:05:40 ERROR ce[o.s.s.c.t.CeProcessingSchedulerExecutorServiceImpl] Pool CeProcessingSchedulerExecutorServiceImpl did not terminate
      

      in

      TERM trapped.  Shutting down.
      2016.03.25 17:05:30 INFO  app[o.s.p.m.Monitor] Process[ce] is stopping
      2016.03.25 17:05:30 INFO  ce[o.s.p.StopWatcher] Stopping process
      2016.03.25 17:05:30 INFO  ce[o.s.ce.app.CeServer] Compute Engine shutting down...
      2016.03.25 17:05:40 ERROR ce[o.s.s.c.t.CeProcessingSchedulerExecutorServiceImpl] Pool CeProcessingSchedulerExecutorServiceImpl did not terminate
      2016.03.25 17:05:40 INFO  ce[o.s.s.g.b.GovernanceStopper] Stopping Governance plugin
      2016.03.25 17:05:40 INFO  ce[o.s.s.g.b.GovernanceStopper] Stopping Governance plugin (done) | time=0ms
      2016.03.25 17:06:30 INFO  app[o.s.p.m.Monitor] Process[ce] failed to stop in a timely fashion. Killing it.
      2016.03.25 17:06:31 INFO  app[o.s.p.m.Monitor] Process[ce] is stopped
      2016.03.25 17:06:31 INFO  app[o.s.p.m.Monitor] Process[web] is stopping
      2016.03.25 17:06:31 INFO  web[o.s.p.StopWatcher] Stopping process
      2016.03.25 17:06:31 INFO  web[o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-0.0.0.0-9000"]
      2016.03.25 17:06:32 INFO  web[o.s.s.g.b.GovernanceStopper] Stopping Governance plugin
      2016.03.25 17:06:32 INFO  web[o.s.s.g.b.GovernanceStopper] Stopping Governance plugin (done) | time=0ms
      2016.03.25 17:06:32 INFO  web[o.s.s.n.NotificationService] Notification service stopped
      2016.03.25 17:06:32 INFO  web[o.s.s.d.EmbeddedDatabase] Embedded database stopped
      2016.03.25 17:06:32 INFO  web[o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-0.0.0.0-9000"]
      2016.03.25 17:06:33 INFO  web[o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-0.0.0.0-9000"]
      2016.03.25 17:06:33 INFO  web[o.s.s.a.TomcatAccessLog] Web server is stopped
      2016.03.25 17:06:34 INFO  app[o.s.p.m.Monitor] Process[web] is stopped
      2016.03.25 17:06:34 INFO  app[o.s.p.m.Monitor] Process[es] is stopping
      2016.03.25 17:06:34 INFO   es[o.s.p.StopWatcher]  Stopping process
      2016.03.25 17:06:34 INFO   es[o.elasticsearch.node]  [sonar-1458921873281] stopping ...
      2016.03.25 17:06:34 INFO   es[o.elasticsearch.node]  [sonar-1458921873281] stopped
      2016.03.25 17:06:34 INFO   es[o.elasticsearch.node]  [sonar-1458921873281] closing ...
      2016.03.25 17:06:34 INFO   es[o.elasticsearch.node]  [sonar-1458921873281] closed
      2016.03.25 17:06:35 INFO  app[o.s.p.m.Monitor] Process[es] is stopped
      <-- Wrapper Stopped
      

      This error log is not useful. It should be removed or at least replaced by an INFO log stating that a task has been aborted.

        Attachments

          Activity

            People

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

              Dates

              • Due:
                Created:
                Updated:
                Resolved: