miroir/crates
jedarden 65ad0bc212 feat(reshard): seed real source-index doc count in start_backfill (bf-2tddo)
Replace the legacy `total_documents: 0` placeholder on the in-memory
BackfillProgress in `start_backfill` with the real source-index document
count via `compute_source_document_count` (the bf-2ynu5 helper that
delegates to `crate::index_stats::aggregate_index_stats`). The progress
ratio now has a non-zero denominator from the very first shard.

A stats-query failure must never abort a reshard over a mere progress
signal, so the call maps an error to `0` via `.unwrap_or(0)` —
`advance_backfill`'s per-shard accumulation remains the legacy fallback
that fills the denominator in incrementally.

In-memory only: no change to the persisted ReshardOperation and no
`upfront_total_known` reconciliation field in this child (those are
children 2 and 3).

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-10 17:25:56 -04:00
..
miroir-core feat(reshard): seed real source-index doc count in start_backfill (bf-2tddo) 2026-07-10 17:25:56 -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