googleapis / googleapis/google-cloud-cpp
Treat credential errors as retryable
- 主要语言
- C++
- 星标
- 659
- 派生
- 462
- 平均合并
- 1 天 2 小时
- 30 天内合并 PR
- 89
描述
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.
贡献指南
调研方向
没有指定文件或测试。首先查看针对本地失败的近期 ErrorInfo 工作,并跟踪各个 C++ 客户端库中的重试循环;当凭据获取失败能够被区分并按暂时性失败处理时(包括非幂等操作),即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp, grpc
- 领域
- authentication, backend-api-design
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100