mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-03 22:29:54 +00:00
Fix snapshot flake
Avoid "snapshot save already in progress" flake when snapshot reconcile from previous save is still in progress. Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
committed by
Brad Davidson
parent
f83cce95cf
commit
68fbd1a6b5
@@ -149,8 +149,10 @@ var _ = Describe("Verify Create", Ordered, func() {
|
||||
It("prunes s3 snapshots", func() {
|
||||
_, err := e2e.RunCmdOnNode("k3s etcd-snapshot save", serverNodeNames[0])
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
time.Sleep(time.Second)
|
||||
_, err = e2e.RunCmdOnNode("k3s etcd-snapshot save", serverNodeNames[0])
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
time.Sleep(time.Second)
|
||||
res, err := e2e.RunCmdOnNode("k3s etcd-snapshot prune", serverNodeNames[0])
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
// There should now be 4 on-demand snapshots - 2 local, and 2 on s3
|
||||
|
||||
Reference in New Issue
Block a user