Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[fix](routine-load) fix auto resume invalid when FE leader ch…
…ange (apache#37071)" (apache#37804) revert (apache#37071) It will only call the `write` method to write the edit log when creating the routine load job, but will not use this method when change job state to pause, but use the logic: ``` Env.getCurrentEnv().getEditLog().logOpRoutineLoadJob(new RoutineLoadOperation(id, jobState)); ``` Therefore, using the logic: ``` @SerializedName("pr") protected ErrorReason pauseReason; ``` only persist pauseReason when create job, rather than pause job, which means `pauseReason` will not be persist when it is assigned due to pause, causing auto resume still invalid if FE leader change when job pause.
- Loading branch information