aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-main
diff options
context:
space:
mode:
authorJacek Poreda <jacek.poreda@sonarsource.com>2023-08-22 11:53:04 +0200
committersonartech <sonartech@sonarsource.com>2023-08-25 20:02:40 +0000
commitba9188032bfeefa0cb1b5500bf392f1792d4bf18 (patch)
tree13c1ddc60dd8b9e17f3e200e0b53307174cfc7a8 /server/sonar-main
parent36cd174168e89cf2b62a567c85d215d22869e729 (diff)
downloadsonarqube-ba9188032bfeefa0cb1b5500bf392f1792d4bf18.tar.gz
sonarqube-ba9188032bfeefa0cb1b5500bf392f1792d4bf18.zip
SONAR-19678 Fix flaky `all_processes_are_stopped_if_one_process_goes_down`
Diffstat (limited to 'server/sonar-main')
-rw-r--r--server/sonar-main/src/main/java/org/sonar/application/SchedulerImpl.java3
1 files changed, 2 insertions, 1 deletions
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 ca6fe276c4b..b3c1e5c76ac 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
@@ -255,12 +255,13 @@ public class SchedulerImpl implements Scheduler, ManagedProcessEventListener, Pr
private void hardStopImpl() {
try {
hardStopAll();
- finalizeStop();
} catch (InterruptedException e) {
// ignore and assume SQ stop is handled by another thread
LOG.debug("Stopping all processes was interrupted in the middle of a hard stop" +
" (current thread name is \"{}\")", Thread.currentThread().getName());
Thread.currentThread().interrupt();
+ } finally {
+ finalizeStop();
}
}