You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2019/06/03 05:52:05 UTC

[airavata] branch master updated: Minor logging improvements and exception handling

This is an automated email from the ASF dual-hosted git repository.

dimuthuupe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/master by this push:
     new 5013f65  Minor logging improvements and exception handling
5013f65 is described below

commit 5013f656297a44088b4c577a2db108ce79d8882f
Author: Dimuthu Wannipurage <di...@gmail.com>
AuthorDate: Mon Jun 3 01:12:35 2019 -0400

    Minor logging improvements and exception handling
---
 .../airavata/orchestrator/server/OrchestratorServerHandler.java       | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/server/OrchestratorServerHandler.java b/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/server/OrchestratorServerHandler.java
index 90ea7bb..ef88cb2 100644
--- a/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/server/OrchestratorServerHandler.java
+++ b/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/server/OrchestratorServerHandler.java
@@ -368,6 +368,10 @@ public class OrchestratorServerHandler implements OrchestratorService.Iface {
                     }
                     // set application deployment id to process model
                     ApplicationDeploymentDescription applicationDeploymentDescription = getAppDeployment(registryClient, processModel, applicationId);
+                    if (applicationDeploymentDescription == null) {
+                    	log.error("Could not find an application deployment for " + processModel.getComputeResourceId() + " and application " + applicationId);
+						throw new OrchestratorException("Could not find an application deployment for " + processModel.getComputeResourceId() + " and application " + applicationId);
+                    }
                     processModel.setApplicationDeploymentId(applicationDeploymentDescription.getAppDeploymentId());
                     // set compute resource id to process model, default we set the same in the user preferred compute host id
                     processModel.setComputeResourceId(processModel.getProcessResourceSchedule().getResourceHostId());