-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Bad credentials file causes Pub/Sub topic creation to hang #3573
Comments
This repeats over and over in the logs when running an Integration test after the key has been deleted:
|
@chingor13 after 3757 merged in grpc, all IOException is getting retried. google-auth-library-java throws IOException every where and almost all are not retriable. Does it make sense to change to something other than IOException? |
This isn't something we can fix in this repository. The grpc team is working on a retry framework, and their framework may deal with this issue. |
Any new updates on this issue? |
Do we have any update on the retry framework that the grpc team is working on ? |
It looks like this does ultimately return now, though it ends up waiting for the deadline of the RPC to pass because it considers it a retryable error (UNAVAILABLE). Given that UNAVAILABLE errors are generally retryable, I don't think we want to turn all of those errors to non-retryable. The default timeout is 10 minutes, though one can override this:
If one calls |
@kamalaboulhosn - I see, thank you for your research on this. I don't feel 100% confident about this though; it doesn't feel quite right to ask users to change the timeout setting just so it won't hang if they accidentally use an incorrect credentials file or delete it. I'll dig deeper to ask GRPC if they throw a different error than UNAVAILABLE. I'm gonna reopen this and see if I can get to the bottom of this. |
Earlier in the year I filed an issue to see if we can fix this problem: grpc/grpc-java#6808 From what it looks like I don't think the problem will be fixed due to certain technical reasons... I think we'll just have to live with the 10-minute timeout. Returning this to closed. |
See: spring-attic/spring-cloud-gcp#962.
I suspect that the root cause is in the client library.
Note that when the same credentials file is used to publish a message to a topic, an appropriate exception is thrown saying
java.io.IOException: Error getting access token for service account
and401 Unauthorized
.The text was updated successfully, but these errors were encountered: