miroir/crates/miroir-core/tests
jedarden 7f466c374a feat(rebalancer): implement group draining flow for P4.5
Modified `remove_replica_group` to implement plan §2 group removal flow:
1. Mark group as `draining` — queries stop routing immediately via query_group_active()
2. Nodes can be decommissioned; no data migration needed (other groups hold docs)
3. Second call with force=true completes removal

Cross-group fallback for reads was already implemented in scatter.rs Fallback policy.
RF-restore on node recovery was already implemented in handle_node_recovery().

Added P4.5 acceptance tests:
- p45_group_removal_drains_first: verifies drain-then-remove flow
- p45_rf2_with_one_failed_node_succeeds: verifies RF=2 handles failure
- p45_rf1_with_failed_node_has_cross_group_fallback: verifies fallback path
- p45_node_recovery_can_restore_rf: verifies RF-restore on recovery

Closes: miroir-mkk.5
2026-05-24 05:53:32 -04:00
..
cutover_race.rs Phase 0 (miroir-qon): Foundation verification complete 2026-05-08 20:37:17 -04:00
dfs_skewed_corpus.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
hash_fixtures.rs Phase 1 (miroir-cdo): Core Routing implementation complete 2026-05-09 10:46:56 -04:00
integration.rs test(integration): Add integration tests per plan §8 2026-05-24 01:29:45 -04:00
merger_proptest.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p3_redis_integration.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p3_sqlite_restart.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p3_task_store_proptest.proptest-regressions P1.6: Verify property tests and benchmarks for router/merger 2026-05-23 13:03:54 -04:00
p3_task_store_proptest.rs P6.5: Mode C work-queued chunked jobs - complete worker processing logic 2026-05-23 07:04:53 -04:00
p4_topology_chaos.rs feat(rebalancer): implement group draining flow for P4.5 2026-05-24 05:53:32 -04:00
p13_3_adaptive_replica_selection.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p13_7_alias_acceptance_tests.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p13_8_anti_entropy.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p13_10_idempotency_coalescing.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p22_write_path.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p22_write_path_acceptance.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p23_search_read_path.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p25_task_reconciliation.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p28_api_compatibility.rs style: apply cargo fmt formatting changes 2026-05-24 03:03:42 -04:00
p42_node_addition.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p43_node_drain.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p44_replica_group_addition.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -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 feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
task_store.proptest-regressions Phase 0 (miroir-qon): Re-verify foundation completion 2026-05-09 02:25:45 -04:00
task_store.rs Fix SQLite TaskStore bugs and add concurrent write test 2026-05-13 18:15:39 -04:00
task_store_redis.rs Phase 0 (miroir-qon): Final verification complete - all DoD criteria met 2026-05-09 07:00:22 -04:00