You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, fmt.Errorf("could not restore state from checkpoint: %w, please drain this node and delete pod allocation checkpoint file %q before restarting Kubelet",
50
+
err, path.Join(stateDir, checkpointName))
51
+
}
52
+
45
53
stateCheckpoint:=&stateCheckpoint{
46
-
cache: NewStateMemory(),
54
+
cache: NewStateMemory(praInfo.AllocationEntries),
47
55
checkpointManager: checkpointManager,
48
56
checkpointName: checkpointName,
49
57
}
50
-
51
-
iferr:=stateCheckpoint.restoreState(); err!=nil {
52
-
//lint:ignore ST1005 user-facing error message
53
-
returnnil, fmt.Errorf("could not restore state from checkpoint: %v, please drain this node and delete pod allocation checkpoint file %q before restarting Kubelet", err, path.Join(stateDir, checkpointName))
54
-
}
55
58
returnstateCheckpoint, nil
56
59
}
57
60
58
61
// restores state from a checkpoint and creates it if it doesn't exist
verifyPodResourceAllocation(t, &tt.args.podResourceAllocation, &actual, "stored pod resource allocation is not equal to original pod resource allocation")
0 commit comments