This is an automated email from the ASF dual-hosted git repository. machristie pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/airavata.git
commit 7288049f11de7fd3bbcfc7f7615543e2d3541ace Author: Marcus Christie <[email protected]> AuthorDate: Fri Feb 3 17:03:42 2023 -0500 AIRAVATA-3680 Allow ExperimentNotFoundException through --- .../apache/airavata/api/server/handler/AiravataServerHandler.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java index b957e5ab1c..5ebda9835c 100644 --- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java +++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java @@ -1639,6 +1639,11 @@ public class AiravataServerHandler implements Airavata.Iface { sharingClientPool.returnResource(sharingClient); return null; } + } catch (ExperimentNotFoundException e) { + logger.error(e.getMessage(), e); + registryClientPool.returnResource(regClient); + sharingClientPool.returnResource(sharingClient); + throw e; } catch (Exception e) { logger.error("Error while getting the experiment", e); AiravataSystemException exception = new AiravataSystemException();
