miroir/crates
jedarden c69b031a91 feat(reshard): propagate backfill progress to persisted ReshardOperation (bf-1q4wa)
Add an optional persisted-operation seam to ReshardExecutor so the admin
status endpoint's ReshardOperation::backfill_progress() reads a real ratio
instead of the 0.0 an unset denominator yields.

- progress_operation: Option<Arc<RwLock<ReshardOperation>>> field (None on
  the default path)
- with_progress_operation(op) builder to attach the persisted operation
- report_progress(&state): when an operation is attached, mirrors the
  executor's BackfillProgress (processed_documents numerator,
  total_documents denominator) into it via
  ReshardOperation::update_backfill_progress; a no-op when None
- call report_progress at the end of start_backfill (propagates the
  denominator seeded by bf-2tddo / reconciled by bf-1rodg) and at the end
  of advance_backfill (propagates the numerator as each shard completes)

With no operation attached the default executor path is unchanged.

Child 3 of 4 of bf-67ki8.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-10 17:48:39 -04:00
..
miroir-core feat(reshard): propagate backfill progress to persisted ReshardOperation (bf-1q4wa) 2026-07-10 17:48:39 -04:00
miroir-ctl feat(explain): display IncompleteIntegration warnings in CLI 2026-05-26 21:03:36 -04:00
miroir-proxy fix(ci): enable kafka-sink feature in CI build and Dockerfile 2026-05-31 12:08:39 -04:00