microsoftgraph / microsoftgraph/msgraph-sdk-java
Improve default RetryHandler implementation
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 444
- 派生
- 154
- 平均合并
- 18 小时 28 分钟
- 30 天内合并 PR
- 4
描述
Is your feature request related to a problem? Please describe the problem.
SDK V5
As per incident: 2409111420000033
in case there is a low memory on server side the server returns 503 for other error codes.
In such cases SDK treats 404, 403 errors as if it is 503 and retries.
We were instructed by Microsoft support person of contact to implement RetryHandler on application side and retry only if "retry-after" header is present. However, it sounds like this should be handled in SDK side rather than us.
Describe the solution you'd like.
I would propose such cases, when Microsoft servers have low memory to be handled by SDK
Additional context?
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
该 issue 没有指定源文件或测试;首先定位 Java SDK 中默认的 RetryHandler 实现及现有的重试测试。检查 403、404、503 和 retry-after header 的处理方式,然后添加覆盖,表明只有在请求的响应 header 允许重试时才会进行重试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- api
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100