airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dimuthu...@apache.org
Subject [airavata] branch staging updated: Fixing a minor bug in monitoring paths
Date Wed, 03 Oct 2018 14:28:58 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/staging by this push:
     new 6227c37  Fixing a minor bug in monitoring paths
6227c37 is described below

commit 6227c3784c0b2774d4857fb5def4c395ed0038b7
Author: Dimuthu Wannipurage <dimuthu.wannipurage@datasprouts.com>
AuthorDate: Wed Oct 3 10:28:49 2018 -0400

    Fixing a minor bug in monitoring paths
---
 .../main/java/org/apache/airavata/helix/core/util/MonitoringUtil.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/airavata-helix/task-core/src/main/java/org/apache/airavata/helix/core/util/MonitoringUtil.java
b/modules/airavata-helix/task-core/src/main/java/org/apache/airavata/helix/core/util/MonitoringUtil.java
index 11f03b3..b1e3a70 100644
--- a/modules/airavata-helix/task-core/src/main/java/org/apache/airavata/helix/core/util/MonitoringUtil.java
+++ b/modules/airavata-helix/task-core/src/main/java/org/apache/airavata/helix/core/util/MonitoringUtil.java
@@ -162,7 +162,7 @@ public class MonitoringUtil {
     }
 
     public static String getJobNameByJobId(CuratorFramework curatorClient, String jobId)
throws Exception {
-        String path = REGISTRY + jobId + JOB_NAME;
+        String path = MONITORING + jobId + JOB_NAME;
         if (curatorClient.checkExists().forPath(path) != null) {
             byte[] gatewayBytes = curatorClient.getData().forPath(path);
             return new String(gatewayBytes);
@@ -172,7 +172,7 @@ public class MonitoringUtil {
     }
 
     public static String getJobIdByJobName(CuratorFramework curatorClient, String jobName)
throws Exception {
-        String path = REGISTRY + jobName + JOB_ID;
+        String path = MONITORING + jobName + JOB_ID;
         if (curatorClient.checkExists().forPath(path) != null) {
             byte[] gatewayBytes = curatorClient.getData().forPath(path);
             return new String(gatewayBytes);


Mime
View raw message