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/01/30 17:58:46 UTC

[airavata] branch staging updated: Fixing the bug in returning broken registry client objects into the pool

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 88d45a8  Fixing the bug in returning broken registry client objects into the pool
88d45a8 is described below

commit 88d45a8b839910fb45c29d7beef4bd034e586e68
Author: Dimuthu Wannipurage <di...@gmail.com>
AuthorDate: Wed Jan 30 12:58:34 2019 -0500

    Fixing the bug in returning broken registry client objects into the pool
---
 .../org/apache/airavata/helix/impl/workflow/PostWorkflowManager.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/workflow/PostWorkflowManager.java b/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/workflow/PostWorkflowManager.java
index d8bba53..afff17d 100644
--- a/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/workflow/PostWorkflowManager.java
+++ b/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/workflow/PostWorkflowManager.java
@@ -179,7 +179,7 @@ public class PostWorkflowManager extends WorkflowManager {
             }
         } catch (Exception e) {
             logger.error("Failed to process job : " + jobStatusResult.getJobId() + ", with status : " + jobStatusResult.getState().name(), e);
-            getRegistryClientPool().returnResource(registryClient);
+            getRegistryClientPool().returnBrokenResource(registryClient);
             return false;
         }
     }