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

Auth: Make IOException non retriable #5203

Closed
wants to merge 4 commits into from
Closed

Conversation

ajaaym
Copy link

@ajaaym ajaaym commented Jan 2, 2019

Fix #3573 Making IOException non retriable. Since most of Auth implementation based on network are already retrying for common problems and there are more IOException that are not retriable.

@thelinuxfoundation
Copy link

Thank you for your pull request. Before we can look at your contribution, we need to ensure all contributors are covered by a Contributor License Agreement.

After the following items are addressed, please respond with a new comment here, and the automated system will re-verify.

Regards,
CLA GitHub bot

@ajaaym
Copy link
Author

ajaaym commented Jan 2, 2019

I signed it

@dapengzhang0 dapengzhang0 requested a review from ejona86 January 3, 2019 00:59
@creamsoup creamsoup added the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Jan 4, 2019
@kokoro-team kokoro-team removed the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Jan 4, 2019
@ejona86
Copy link
Member

ejona86 commented Jan 9, 2019

NAK. This was done on purpose in #3757 to fix #3267. This is cross-language gRPC behavior. The more common case is simply there was an I/O failure getting the token and retrying will fix it. If the client has no valid token then things are broken anyway; if an application-level retry forever retries, that seems like its own problem.

@ajaaym
Copy link
Author

ajaaym commented Jan 9, 2019

@ejona86 Thanks for the review and background. Reason I thought to put back this change is bcz google-auth-library-java already retries the common cause so when it comes here its normally not-retriable. Closing this and will take up the discussion on google-auth-library-java.

@ajaaym ajaaym closed this Jan 9, 2019
@ejona86
Copy link
Member

ejona86 commented Jan 9, 2019

@ajaaym, hmmm... That was added in googleapis/google-auth-library-java#104 . I wasn't aware of that (I reviewed many of the initial changes in google-auth-library-java and was an old maintainer for google-{http,oauth,api}-java-client). Go ahead and include me in the conversation with google-auth-library-java. It seems the problem is that google-auth-library-java is retrying for 18 minutes, if I'm reading ExponentialBackOff correctly (see DEFAULT_MAX_ELAPSED_TIME_MILLIS and nextBackOffMillis(); 900000 ms is 18 minutes, not 15...).

@lock lock bot locked as resolved and limited conversation to collaborators Apr 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants