What happened?
CPU and memory QRM policies only log checkpoint write errors. Allocate and RemovePod can still return success.
After a restart, a successful allocation may disappear, or removed pod state may come back.
How to reproduce
- Make
cpu_plugin_state or memory_plugin_state unwritable.
- Call
Allocate or RemovePod.
- The checkpoint write fails, but the RPC still succeeds.
- Restart the policy and it restores the stale checkpoint.
Expected behavior
Return an error when the final checkpoint update fails.
What happened?
CPU and memory QRM policies only log checkpoint write errors.
AllocateandRemovePodcan still return success.After a restart, a successful allocation may disappear, or removed pod state may come back.
How to reproduce
cpu_plugin_stateormemory_plugin_stateunwritable.AllocateorRemovePod.Expected behavior
Return an error when the final checkpoint update fails.