mirror of
https://github.com/milvus-io/milvus.git
synced 2026-07-21 18:25:44 +00:00
## Summary - Add 15 new test cases for snapshot feature covering lifecycle edge cases, alias support, and cross-database restore - Verify fix for #47578 (DropSnapshot during active restore) - All tests verified on latest master image (`master-20260224-091b147e-amd64`) ### New Test Classes | Class | Tests | Level | Description | |-------|-------|-------|-------------| | `TestMilvusClientSnapshotDropInvalid` | +1 | L1 | Drop during active restore (#47578) | | `TestMilvusClientSnapshotLifecycle` | +8 | L2/L3 | Collection lifecycle + snapshot interactions | | `TestMilvusClientSnapshotAlias` | +6 | L2 | Snapshot ops via collection aliases | ### Test Details **Lifecycle tests (L2):** - Drop target collection during restore - Rename source collection after snapshot creation - Create snapshot on collection being restored to - Restore failure leaves no resource leak - Concurrent drop of same snapshot (idempotent) - Create snapshot during drop of source collection - Cross-database snapshot restore - Drop and restore race condition (L3) **Alias tests (L2):** - Create snapshot via alias → describe shows real collection name - List snapshots via alias == list via real name - Restore from alias-created snapshot with data integrity - List restore jobs via alias on restored collection - Dropped alias → create snapshot fails with "not found" - Alter alias retarget → list snapshots reflects new target ## Test plan - [x] All 14 L1/L2 tests pass on standalone (master-20260224-091b147e-amd64) - [x] L3 race test works but may timeout on standalone due to resource exhaustion --------- Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com> Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>