Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(shared-cache): At startup retry token retrieval #627

Merged
merged 1 commit into from Jan 11, 2022

Conversation

flub
Copy link
Contributor

@flub flub commented Jan 10, 2022

At k8s pod startup time the GKE metadata service might not give us
tokens right away, with errors ranging from connection refused to
transient http errors. So we need to keep trying for a bit longer.

This also adds the timeout on the token retrieval for writing to the
shared cache, otherwise those tasks would indefinitely stall (which
isn't the worst thing ever since they sit in a bounded queue).

Fixes: SYMBOLICATOR-NK

#skip-changelog

At k8s pod startup time the GKE metadata service might not give us
tokens right away, with errors ranging from connection refused to
transient http errors.  So we need to keep trying for a bit longer.

This also adds the timeout on the token retrieval for writing to the
shared cache, otherwise those tasks would indefinitely stall (which
isn't the worst thing ever since they sit in a bounded queue).

Fixes: SYMBOLICATOR-NK
@flub flub requested a review from a team as a code owner January 10, 2022 16:20
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@2a33238). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #627   +/-   ##
=========================================
  Coverage          ?   73.16%           
=========================================
  Files             ?       48           
  Lines             ?    10592           
  Branches          ?        0           
=========================================
  Hits              ?     7750           
  Misses            ?     2842           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a33238...d0f93d1. Read the comment docs.

@flub flub enabled auto-merge (squash) January 11, 2022 08:16
@flub flub requested a review from oioki January 11, 2022 13:46
@flub flub merged commit 13bff73 into master Jan 11, 2022
@flub flub deleted the shared-cache/initial-delay branch January 11, 2022 14:10
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.

None yet

3 participants