Skip to content

remote: retry failed Puller and Pusher initialization - #2406

Open
iahsanGill wants to merge 1 commit into
google:mainfrom
iahsanGill:codex/remote-retry-failed-init
Open

remote: retry failed Puller and Pusher initialization#2406
iahsanGill wants to merge 1 commit into
google:mainfrom
iahsanGill:codex/remote-retry-failed-init

Conversation

@iahsanGill

Copy link
Copy Markdown
Contributor

A failed Puller or Pusher initialization is retained by sync.Once, so a transient context, authentication, or transport error poisons the reusable client.

Delete only the failed cached reader or writer with CompareAndDelete, allowing the next request to initialize it again without removing a concurrent replacement. This adds retry regressions for both paths.

Fixes #2060

Tests:

  • ./hack/presubmit.sh
  • go test -race ./pkg/v1/remote -count=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

issue with caching "bad" fetchers in Puller/Pusher

1 participant