miroir/crates/miroir-core/tests
jedarden 8b1cf42863 P6.5: Mode C work-queued chunked jobs - complete worker processing logic
Implements plan §14.5 Mode C work-queued chunked jobs for large
background operations (dump import, reshard backfill).

## Changes

### Core Implementation
- mode_c_coordinator.rs: Job coordination with claim/reclaim/heartbeat
- mode_c_worker/mod.rs: Worker loop for processing jobs
- mode_c_worker/acceptance_tests.rs: Full acceptance test suite
- reshard_chunking.rs: Shard-id range chunking for reshard backfill

### Database
- migrations/005_jobs_chunking.sql: Add chunking fields (parent_job_id,
  chunk_index, total_chunks, created_at) with indexes

### Integration
- admin_endpoints.rs: Add ModeCWorker to AppState
- task_store: Updated to support chunking fields
- All test fixtures updated with new NewJob fields

## Acceptance Tests Pass
- 1 GB dump splits into 4× 256 MiB chunks; 3 pods claim in parallel
- Claim expires in 30s; another pod resumes at last_cursor
- HPA queue depth metric drives scaling (queue_depth > 10)
- Two concurrent dumps interleave without starvation
- Reshard backfill splits by shard-id range

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 07:04:53 -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
p3_redis_integration.rs P3: Update TaskStore to synchronous API and test improvements 2026-05-02 17:49:22 -04:00
p3_sqlite_restart.rs P6.5: Mode C work-queued chunked jobs - complete worker processing logic 2026-05-23 07:04:53 -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 P4: Phase 4 Topology Operations — rebalancer, migration executor, chaos tests 2026-05-02 16:50:42 -04:00
p13_7_alias_acceptance_tests.rs P5.7 §13.7: Complete alias acceptance tests 2026-05-23 01:54:05 -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
p42_node_addition.rs P4.2 Node addition: dual-write + paginated shard migration 2026-05-08 15:15:35 -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