You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Chenxi Zhao (JIRA)" <ji...@apache.org> on 2018/04/17 20:07:00 UTC

[jira] [Created] (REEF-2004) JavaClrBridge is not setting exit code when catches exception

Chenxi Zhao created REEF-2004:
---------------------------------

             Summary: JavaClrBridge is not setting exit code when catches exception
                 Key: REEF-2004
                 URL: https://issues.apache.org/jira/browse/REEF-2004
             Project: REEF
          Issue Type: Bug
          Components: REEF Bridge
            Reporter: Chenxi Zhao


When running REEF bridge and there is an exception happening, JavaClrBridge will catch the exception and call error handler. The exception is handled properly. However, the problem is that Runtime (e.g. Azure Batch, probably YARN as well) task status is defined by exit code of the command line in Job Submission.

 

Expect: exit code should indicate an error if there is exception that prevents Job finishing.

 

Actual: exit code is 0. The job with exception will be considered as completed successfully, unless user manually examine logs.

 

Note: Java side is returning exit code 1, in REEFUncaughtExceptionHandler.

 

An example is:

[https://github.com/apache/reef/blob/master/lang/cs/Org.Apache.REEF.Bridge/JavaClrBridge.cpp#L320]

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)