diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-09 14:12:24 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-09 14:12:24 +0000 |
| commit | 93a1684f068603b354ba3c05957a25459c73de05 (patch) | |
| tree | 324e6d0e2a6a34fd4804ef94133cd35233081bb9 /src/git/process.rs | |
| parent | c34492069abacae67482af4c8356241958a524f7 (diff) | |
feat(sync): add ConnectedDegraded status for failed historic sync
- Add ConnectionStatus::ConnectedDegraded (status=4 in metrics)
- Track batch failures via PendingBatch.failed field
- Track relay-level failures via RelayState.historic_sync_had_failures
- Transition to ConnectedDegraded when any batch fails during historic sync
- Add is_live_sync_active() helper for cleaner match patterns
- Update state machine diagram with ConnectedDegraded transitions
- Update metrics docs with status=4 and example queries
Fixes issue where relays with failed negentropy retries would
incorrectly transition to Connected status despite missing data.
Now operators can distinguish 'fully synced' vs 'degraded (partial data)'.
Diffstat (limited to 'src/git/process.rs')
0 files changed, 0 insertions, 0 deletions