Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libct/int: retry Checkpoint for cgroup v1
Cgroup v1 freezer have issues when trying to freeze a cgroup, and despite criu retries, it may fail like this: === RUN TestCheckpoint time="2024-10-18T08:55:44Z" level=warning msg="--- Quoting "/tmp/TestCheckpoint214687474/003/criu-parent/dump.log"" time="2024-10-18T08:55:44Z" level=warning msg="118:(09.517977) freezer.state=FREEZING" time="2024-10-18T08:55:44Z" level=warning msg="119:(09.618087) freezer.state=FREEZING" time="2024-10-18T08:55:44Z" level=warning msg="120:(09.718192) freezer.state=FREEZING" time="2024-10-18T08:55:44Z" level=warning msg="121:(09.818291) freezer.state=FREEZING" time="2024-10-18T08:55:44Z" level=warning msg="122:(09.918412) freezer.state=FREEZING" time="2024-10-18T08:55:44Z" level=warning msg="123:(10.001045) Error (criu/cr-dump.c:1779): Timeout reached. Try to interrupt: 0" time="2024-10-18T08:55:44Z" level=warning msg="124:(10.001084) freezer.state=FREEZING" time="2024-10-18T08:55:44Z" level=warning msg="125:(10.001125) Unfreezing tasks into 1" time="2024-10-18T08:55:44Z" level=warning msg="126:(10.001128) \tUnseizing 45035 into 1" time="2024-10-18T08:55:44Z" level=warning msg="127:(10.001140) Error (compel/src/lib/infect.c:418): Unable to detach from 45035: No such process" time="2024-10-18T08:55:44Z" level=warning msg="128:(10.001144) Writing image inventory (version 1)" time="2024-10-18T08:55:44Z" level=warning msg="129:(10.001223) Error (criu/cr-dump.c:1893): Pre-dumping FAILED." time="2024-10-18T08:55:44Z" level=warning msg=--- checkpoint_test.go:93: criu failed: type PRE_DUMP errno 0 Since cgroup v1 is going to be deprecated, and the problem doesn't exist on cgroup v2, let's retry the checkpoint a few times (on v1 only) to avoid flaky tests. Issues 4457, 4273. Signed-off-by: Kir Kolyshkin <[email protected]>
- Loading branch information