From 1ad969537aab1981b4d3c06120529688b13156cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Lesaint?= Date: Fri, 30 Aug 2019 11:35:30 +0200 Subject: [PATCH] remove rethrow of exception in tryToStartProcess rethrowing is effectively useless as no called will catch the exception in practice, it is caught by the default exception handle of technical thread involved in scheduler SQ start/stop and logged to default logger this is just noise as the error has been logged by ManagedProcessHandler's start method anyway. --- .../src/main/java/org/sonar/application/SchedulerImpl.java | 1 - 1 file changed, 1 deletion(-) diff --git a/server/sonar-main/src/main/java/org/sonar/application/SchedulerImpl.java b/server/sonar-main/src/main/java/org/sonar/application/SchedulerImpl.java index 3259a5efcbb..9de3c9acbe7 100644 --- a/server/sonar-main/src/main/java/org/sonar/application/SchedulerImpl.java +++ b/server/sonar-main/src/main/java/org/sonar/application/SchedulerImpl.java @@ -194,7 +194,6 @@ public class SchedulerImpl implements Scheduler, ManagedProcessEventListener, Pr } catch (RuntimeException e) { // failed to start command -> stop everything hardStop(); - throw e; } } -- 2.39.5