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-mft.git

commit 8406a250b59f1e62d612f76396999656f69b91ee
Author: Dimuthu Wannipurage <[email protected]>
AuthorDate: Thu Apr 16 00:19:34 2020 -0400

    Catching all throwables at final try block
---
 agent/src/main/java/org/apache/airavata/mft/agent/MFTAgent.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/agent/src/main/java/org/apache/airavata/mft/agent/MFTAgent.java 
b/agent/src/main/java/org/apache/airavata/mft/agent/MFTAgent.java
index f0f4dcb..aabd4a6 100644
--- a/agent/src/main/java/org/apache/airavata/mft/agent/MFTAgent.java
+++ b/agent/src/main/java/org/apache/airavata/mft/agent/MFTAgent.java
@@ -162,7 +162,7 @@ public class MFTAgent implements CommandLineRunner {
 
                         // Save transfer metadata in scheduled path to recover 
in case of an Agent failures. Recovery is done from controller
                         
mftConsulClient.getKvClient().putValue(MFTConsulClient.AGENTS_SCHEDULED_PATH + 
agentId + "/" + session + "/" + transferId, v);
-                    } catch (Exception e) {
+                    } catch (Throwable e) {
                         if (request != null) {
                             try {
                                 logger.error("Error in submitting transfer 
{}", request.getTransferId(), e);

Reply via email to