Commit a1e68af
committed
e2e: clean up namespaces after backup-failure tests to avoid interfering with subsequent tests
The test "should handle removal of MantleBackup in secondary k8s cluster during
an incremental backup" was failing with a timeout.
When the previous test (primary MantleBackup deletion scenario) finishes, a
residual secondary MantleBackup is left behind in "waiting for export data"
state because its primary was deleted before the upload completed. When the
next test pauses RGW, the secondary reconciler gets blocked on S3 operations
triggered by processing this residual MantleBackup, causing `kubectl delete
--timeout=3m` issued against the current test's secondary MantleBackup to
expire before finalizeSecondary could run.
Delete both primary and secondary namespaces at the end of each backup-failure
test via DeferCleanup, so that no residual MantleBackups remain when the next
test starts.
Signed-off-by: Kohya Shiozaki <kouyan120706@gmail.com>1 parent 6fb2d62 commit a1e68af
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
158 | 161 | | |
159 | 162 | | |
160 | 163 | | |
| 164 | + | |
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
489 | 497 | | |
490 | 498 | | |
491 | 499 | | |
| |||
0 commit comments