[Fix](replayer) Fix FE crash when replaying analysis logs. (#25024)

Issue Number: close #25023

The detail of this bug has been described at the above issue. We can check if current FE is a master node to avoid such problems.
This commit is contained in:
Xiangyu Wang
2023-10-07 23:06:34 +08:00
committed by GitHub
parent 0df32c8e3e
commit 238c349946

View File

@ -1064,7 +1064,7 @@ public class AnalysisManager extends Daemon implements Writable {
a -> {
// FE is not ready when replaying log and operations triggered by replaying
// shouldn't be logged again.
if (Env.getCurrentEnv().isReady() && !Env.isCheckpointThread()) {
if (Env.getCurrentEnv().isReady() && Env.getCurrentEnv().isMaster() && !Env.isCheckpointThread()) {
analysisManager.logAutoJob(a);
}
return null;