[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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user