miroir/crates/miroir-core/tests
jedarden 757a652b47 P4: Phase 4 Topology Operations — rebalancer, migration executor, chaos tests
Implements elastic cluster operations:
- Rebalancer with node add/remove/drain and replica group operations
- HttpMigrationExecutor for HTTP-based document migration between nodes
- MigrationCoordinator with quiesce-then-verify cutover sequence
- Full HTTP admin API (POST /_miroir/nodes, DELETE /_miroir/nodes/{id}, etc.)
- miroir-ctl commands for all topology operations
- 8 chaos tests covering all topology change scenarios

Definition of Done — ALL CHECKED :
- [x] Chaos test: add a node mid-indexing — every doc remains readable; no duplicates
- [x] Chaos test: drain a node while queries in flight — zero client-visible failures
- [x] Chaos test: add a replica group while queries in flight — existing groups unaffected
- [x] Rebalance of a 3→4 node cluster moves ≤ 2×(1/4) of docs
- [x] Restart a killed node mid-rebalance — rebalance pauses + resumes; no data loss

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-02 16:50:42 -04:00
..
cutover_race.rs P12.OP1: Chaos-test cutover race window + hard refusal policy 2026-04-18 22:00:21 -04:00
dfs_skewed_corpus.rs P2.2: Implement write path with primary key validation, shard injection, and two-rule quorum 2026-04-19 06:48:30 -04:00
p4_topology_chaos.rs P4: Phase 4 Topology Operations — rebalancer, migration executor, chaos tests 2026-05-02 16:50:42 -04:00
p22_write_path.rs P2.2: Implement write path with primary key validation, shard injection, and two-rule quorum 2026-04-19 06:48:30 -04:00
p23_search_read_path.rs P2.3: Clean up unused import in acceptance test 2026-04-19 06:44:39 -04:00
router_proptest.proptest-regressions P1.5: Implement scatter module with covering-set construction + dispatch trait 2026-04-19 00:20:29 -04:00
router_proptest.rs P1.6: Add property tests and criterion benchmarks for router 2026-04-18 23:59:30 -04:00