Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
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 examines 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