You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
defer sync rows on transient resolver Deadline/LookupError in NetworkGit::prepare #621
Follow-up from #612 (closes #340). Maintainer decision on head 784f951b: ship terminal fail on transient resolver errors in this PR; track deferral here.
NetworkGit::prepare already defers when git --version cannot be read (SyncDeferred), with an in-function comment that transient probe failures should leave the row pending, not failed.
Hostname resolution added in #612 maps all resolver denials—including Denial::Deadline and Denial::LookupError—to a plain anyhow!, so handle_sync_item_error calls mark_sync_failed. A brief DNS outage can permanently fail a sync queue row until a new peer announce re-queues it.
Policy refusals (NonPublic, Empty, TooMany) should remain terminal.
Proposed fix
In crates/twigpine-node/src/sync.rs (NetworkGit::prepare, resolve_host mapping):
Map Denial::Deadline and Denial::LookupError to SyncDeferred (same path as unreadable git version).
Keep other Denial variants terminal.
Add a sync test: injected deadline/lookup error leaves the row pending; second pass with a good lookup completes; non-public answer still failed.
Activity
jatmn commentedon Nov 19, 2026
Linked from maintainer triage on PR #612 (head
784f951b): merge #340 connect-time refusal with terminal fail on transient resolver errors; implement deferral here.