From 840bd0027567ed0b1a06fda1380563eb3d0ba14d Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Tue, 7 May 2024 11:45:16 +0200 Subject: [PATCH] Resolving bug #27319 --- CHANGELOG.md | 6 ++++++ pom.xml | 2 +- .../vremanagement/executor/SmartExecutorInitializator.java | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2339631..5629a28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm # Changelog for Smart Executor Service +## [3.2.1-SNAPSHOT] + +- Fixed bug on concurrent attempt to enter in a session while trying to schedule a second task #27319 +- Fixed bug on concurrent attempt to enter in a session while trying to execute another task #24116 + + ## [v3.2.0] - Fixed RequestFilter to avoid to remove info to Smartgears diff --git a/pom.xml b/pom.xml index ed50db9..076149b 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ org.gcube.vremanagement smart-executor - 3.2.0 + 3.2.1-SNAPSHOT SmartExecutor Smart Executor Service allows to launch recurrent tasks such as task for infrastructure management, healthy monitoring etc. war diff --git a/src/main/java/org/gcube/vremanagement/executor/SmartExecutorInitializator.java b/src/main/java/org/gcube/vremanagement/executor/SmartExecutorInitializator.java index 4b246bc..6c394a0 100644 --- a/src/main/java/org/gcube/vremanagement/executor/SmartExecutorInitializator.java +++ b/src/main/java/org/gcube/vremanagement/executor/SmartExecutorInitializator.java @@ -134,7 +134,7 @@ public class SmartExecutorInitializator implements ApplicationManager { Thread thread = new Thread(){ @Override - public void run(){ + public synchronized void run(){ LaunchParameter launchParameter = scheduledTask.getLaunchParameter(); try {