Skip to content

defer sync rows on transient resolver Deadline/LookupError in NetworkGit::prepare #621

Open

Description

@jatmn

Context

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.

References

Out of scope

Bounded concurrent lookup admission (resolver_policy.rs), changing whole-RRset refusal semantics, git transfer timeouts.

Activity

  1. jatmn commented on Nov 19, 2026

    @jatmn
    CollaboratorAuthor

    Linked from maintainer triage on PR #612 (head 784f951b): merge #340 connect-time refusal with terminal fail on transient resolver errors; implement deferral here.

  2. added
    kind:bug
    sev:low
    subsystem:peers
    subsystem:replication
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugsev:lowsubsystem:peerssubsystem:replication

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions