aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacek Poreda <jacek.poreda@sonarsource.com>2023-08-22 11:53:04 +0200
committersonartech <sonartech@sonarsource.com>2023-09-05 20:02:49 +0000
commit166211109abcbec8885646cf8473de8adc4a5847 (patch)
tree4216ae008ab27d9718712fb46269dd5353d990d7
parent3a4b067965ee114cc43d22451824d7e3c93c96be (diff)
downloadsonarqube-166211109abcbec8885646cf8473de8adc4a5847.tar.gz
sonarqube-166211109abcbec8885646cf8473de8adc4a5847.zip
SONAR-19678 Fix flaky `all_processes_are_stopped_if_one_process_goes_down`
-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();
}
}