[REEF-1207] REEF.NET Evaluator should print a known log line on exit #991
Conversation
This addressed the issue by * Adding constnats for the known Evaluator exit line. * Logging the lines on Evaluator Exit and ensuring that exits are only logged a single time. JIRA: [REEF-1207](https://issues.apache.org/jira/browse/REEF-1207)
{ | ||
} | ||
|
||
public void LogExit(bool successfulExit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
internal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment
I've done a pass. |
I will look at it. |
@@ -208,11 +211,11 @@ public void OnNext(RuntimeStop runtimeStop) | |||
} | |||
catch (Exception e) | |||
{ | |||
Utilities.Diagnostics.Exceptions.CaughtAndThrow(new InvalidOperationException("Cannot stop evaluator properly", e), Level.Error, "Exception during shut down.", Logger); | |||
_evaluatorExitLogger.LogExit(false); | |||
Utilities.Diagnostics.Exceptions.CaughtAndThrow( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is EvaluatorExitLogger supposed to log the last line in evaluator, or it would want to replace current multiple unclear logs before evaluator exit? Here CaughtAndThrow will log again.
I completed a pass. |
@markusweimer @jwang98052 I've addressed your comments, please have another look. Thanks! |
LGTM |
LGTM, will tets and merge |
This addressed the issue by
JIRA:
REEF-1207