airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject git commit: src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHOutputHandler.java
Date Thu, 09 Oct 2014 07:04:29 GMT
Repository: airavata
Updated Branches:
  refs/heads/master fd81a3d40 -> ad02735f1


src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHOutputHandler.java


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

Branch: refs/heads/master
Commit: ad02735f15937616d19f802e060fb0cc99df49b2
Parents: fd81a3d
Author: lahiru <lahiru@apache.org>
Authored: Thu Oct 9 03:04:23 2014 -0400
Committer: lahiru <lahiru@apache.org>
Committed: Thu Oct 9 03:04:23 2014 -0400

----------------------------------------------------------------------
 .../airavata/gfac/gsissh/handler/GSISSHOutputHandler.java | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/ad02735f/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHOutputHandler.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHOutputHandler.java
b/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHOutputHandler.java
index af9fc72..7a12e60 100644
--- a/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHOutputHandler.java
+++ b/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHOutputHandler.java
@@ -217,10 +217,12 @@ public class GSISSHOutputHandler extends AbstractRecoverableHandler
{
                     int retry=3;
                     while(retry>0){
                     	 outputList = cluster.listDirectory(app.getOutputDataDirectory());
-                    	 if(!outputList.get(0).isEmpty() && outputList.size() > 0){
-                    		 break;
-                    	 }	
-                    	 retry--;
+                        if (outputList.size() == 1 && outputList.get(0).isEmpty())
{
+                            continue;
+                        } else if (outputList.size() > 0) {
+                            break;
+                        }
+                        retry--;
                         if(retry==0){
                             log.info("Ohhhhhhh shitttttttOhhhhhhh shitttttttOhhhhhhh shitttttttOhhhhhhh
shitttttttOhhhhhhh shitttttttOhhhhhhh shittttttt");
                         }


Mime
View raw message