presto-main/src/main/java/io/prestosql/execution/StageState.java/StageState/StageState
class StageState:    StageState(boolean doneState, boolean failureState)
    {
        checkArgument(!failureState || doneState, "%s is a non-done failure state", name());
        this.doneState = doneState;
        this.failureState = failureState;
    }