airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shame...@apache.org
Subject airavata git commit: Exit from while loop if sucess
Date Fri, 22 Apr 2016 18:56:45 GMT
Repository: airavata
Updated Branches:
  refs/heads/develop 77a511829 -> 7781ff8fe


Exit from while loop if sucess


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/7781ff8f
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/7781ff8f
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/7781ff8f

Branch: refs/heads/develop
Commit: 7781ff8fe15868d1e1ecc86703aaff03f09c60f2
Parents: 77a5118
Author: Shameera Rathnayaka <shameerainfo@gmail.com>
Authored: Fri Apr 22 14:56:37 2016 -0400
Committer: Shameera Rathnayaka <shameerainfo@gmail.com>
Committed: Fri Apr 22 14:56:37 2016 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/airavata/gfac/impl/HPCRemoteCluster.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/7781ff8f/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/HPCRemoteCluster.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/HPCRemoteCluster.java
b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/HPCRemoteCluster.java
index 468249e..cdd0500 100644
--- a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/HPCRemoteCluster.java
+++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/HPCRemoteCluster.java
@@ -177,6 +177,7 @@ public class HPCRemoteCluster extends AbstractRemoteCluster{
                     } else {
                         SSHUtils.scpThirdParty(sourceFile, session, destinationFile, clientSession,
ignoreEmptyFile);
                     }
+					break; // exit while loop
 				} catch (JSchException e) {
 					if (retryCount == MAX_RETRY_COUNT) {
 						log.error("Retry count " + MAX_RETRY_COUNT + " exceeded for  transferring from:"
@@ -202,6 +203,7 @@ public class HPCRemoteCluster extends AbstractRemoteCluster{
 				log.info("Creating directory: " + serverInfo.getHost() + ":" + directoryPath);
 				try {
 					SSHUtils.makeDirectory(directoryPath, session);
+					break;  // Exit while loop
 				} catch (JSchException e) {
 					if (retryCount == MAX_RETRY_COUNT) {
 						log.error("Retry count " + MAX_RETRY_COUNT + " exceeded for creating directory: "


Mime
View raw message