googleapis / googleapis/google-cloud-cpp
Treat credential errors as retryable
- Lingua principale
- C++
- Stelle
- 659
- Fork
- 462
- Merge medio
- 1g 2h
- PR unite (30g)
- 89
Descrizione
Most credentials need to periodically fetch an access token, often via some HTTP or gRPC request. These requests can fail. These failures are **always** retryable, even for non-idempotent operations, because the request never left the application.
At this time there is no way to distinguish credential failures from RPC failures. But with the recent work to populate `ErrorInfo` for local failures we *could* start telling this failures apparent. For example, we could add a `gcloud-cpp/auth: true` metadata entry to the error info.
We would need to change all the retry loops to treat these errors as transient failures.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.