Uploaded image for project: 'REEF (Retired)'
  1. REEF (Retired)
  2. REEF-2004

JavaClrBridge is not setting exit code when catches exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • REEF Bridge
    • 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

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            homezcx Chenxi Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: