Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
As part of looking into REEF-276, I discovered the following code in Evaluator.cs:
AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionHandler;
and:
private static void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs e) { Exception ex = default(Exception); ex = (Exception)e.ExceptionObject; _logger.Log(Level.Error, "Unhandled exception caught in Evaluator.", ex); Exceptions.Throw(new InvalidOperationException("Unhandled exception caught in Evaluator.", ex), _logger); }
This doesn't seem to inform the Driver of the failure. YARN eventually does, but won't be able to send the exception along. We should send the exception to the Driver before exiting here.