Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: srlch <[email protected]>
  • Loading branch information
srlch committed Jan 17, 2025
1 parent 2b70543 commit 429e5b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ protected void runAfterCatalogReady() {

// skip first run when the scheduler start
if (firstRun) {
// if leader change and the last cluster snapshot job has not been finished/error
// make the state as error, becase the job can not be continued in new leader.
GlobalStateMgr.getCurrentState().getClusterSnapshotMgr().resetLastUnFinishedAutomatedSnapshotJob();
firstRun = false;
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1327,12 +1327,6 @@ private void transferToLeader() {
createBuiltinStorageVolume();
resourceGroupMgr.createBuiltinResourceGroupsIfNotExist();
keyMgr.initDefaultMasterKey();

// if leader change and the last cluster snapshot job has not been finished/error
// make the state as error, becase the job can not be continued in new leader.
if (clusterSnapshotMgr != null) {
clusterSnapshotMgr.resetLastUnFinishedAutomatedSnapshotJob();
}
}

public void setFrontendNodeType(FrontendNodeType newType) {
Expand Down

0 comments on commit 429e5b9

Please sign in to comment.