Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/20388#discussion_r163742642
--- Diff:
launcher/src/main/java/org/apache/spark/launcher/ChildProcAppHandle.java ---
@@ -104,19 +104,12 @@ void monitorChild() {
ec = 1;
}
- State currState = getState();
- State newState = null;
if (ec != 0) {
+ State currState = getState();
// Override state with failure if the current state is not final,
or is success.
if (!currState.isFinal() || currState == State.FINISHED) {
- newState = State.FAILED;
+ setState(State.FAILED, true);
}
- } else if (!currState.isFinal()) {
- newState = State.LOST;
--- End diff --
why is this not needed anymore?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]