airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject git commit: more logs and proper error message when output is empty
Date Fri, 05 Sep 2014 14:05:04 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 1718264c4 -> 0231873b3


more logs and proper error message when output is empty


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

Branch: refs/heads/master
Commit: 0231873b391dd6cb5dfcb249babe92bea549f899
Parents: 1718264
Author: lahiru <lahiru@apache.org>
Authored: Fri Sep 5 10:04:58 2014 -0400
Committer: lahiru <lahiru@apache.org>
Committed: Fri Sep 5 10:04:58 2014 -0400

----------------------------------------------------------------------
 .../apache/airavata/gsi/ssh/impl/GSISSHAbstractCluster.java   | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/0231873b/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/impl/GSISSHAbstractCluster.java
----------------------------------------------------------------------
diff --git a/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/impl/GSISSHAbstractCluster.java
b/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/impl/GSISSHAbstractCluster.java
index 7af7a21..7352f78 100644
--- a/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/impl/GSISSHAbstractCluster.java
+++ b/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/impl/GSISSHAbstractCluster.java
@@ -464,13 +464,10 @@ public class GSISSHAbstractCluster implements Cluster {
     private String getOutputifAvailable(StandardOutReader jobIDReaderCommandOutput, String
errorMsg, String command) throws SSHApiException {
         String stdOutputString = jobIDReaderCommandOutput.getStdOutputString();
         String stdErrorString = jobIDReaderCommandOutput.getStdErrorString();
-
         log.info("StandardOutput Returned:" + stdOutputString);
         log.info("StandardError  Returned:" +stdErrorString);
-        if ((stdOutputString == null || "".equals(stdOutputString)) &&
-                (stdErrorString != null && stdErrorString.contains(command))) {
-            log.error("Standard Error output : " + stdErrorString);
-            throw new SSHApiException(errorMsg + stdErrorString);
+        if("".equals(stdOutputString)){
+            log.error("-------------- Standard output came as empty, so this poll is going
to fail --------------");
         }
         return stdOutputString;
     }


Mime
View raw message