Race condition in CircuitBreaker leading to NoSuchElementException
还没有人认领这个 Issue。
评估
调研方向
该 issue 说明 CircuitBreaker 的竞态条件已在 OCI Java SDK 2.51.2 版本中修复,并且没有提供可供检查的源文件、测试或入口点。请验证受影响的版本范围和发布指导;其中所述的解决方案是使用 2.51.2 或更高版本,因此这里没有描述任何剩余的实现任务。
由索引模型根据 Issue 内容生成。
描述
We have fixed this issue in version 2.51.2. If you are using any OCI Java SDK version(s) >= 2.47.0 and < 2.51.2, we recommend you to update to version 2.51.2 or later. If you are not using any of the affected OCI Java SDK versions, you can ignore this issue.
If for some reason you are not able to update to a non-affected version at this time, another option is to disable and opt out of the SDK's default support for circuit breakers, in service clients that you use in your code and which have enabled circuit breakers by default (almost all service clients). However, our recommended option is not this, but rather to instead update to version 2.51.2 or later.
If you are using the OCI Java SDK at any version(s) >= 2.47.0 and < 2.51.2, then you may be affected by a bug in the SDK's circuit breaker.
Description
When using OCI Java SDK versions >= 2.47.0 and versions < 2.51.2, CircuitBreaker may fail with NoSuchElementException when trying to remove elements from historyQueue. If this exception is thrown, the connection from the connection pool is not released. This could potentially result in the SDK being unable to make additional requests, because all connections are blocked.
Affected Versions
To help prevent their use, all affected versions are marked pre-release with a label Do not use this version in the SDK's GitHub Releases.
Solution
- 主要语言
- Java
- 星标
- 243
- 派生
- 171
- 平均合并
- 5 分钟
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
oracle/oci-java-sdk 的其他 Issue
-
NoSuchMethodError in the circuit breaker since 3.103.0 when resilience4j 2.x is on the classpath未关闭
难度 2/5 1-3 小时 新手友好度 76/100
oracle/oci-java-sdk#803 ·
-
SDK
难度 1/5 1 小时以内 新手友好度 20/100
oracle/oci-java-sdk#788 ·
-
Identity Domains
难度 4/5 3-5 天 新手友好度 25/100
oracle/oci-java-sdk#764 · 3 条评论 ·
-
SDK
难度 3/5 1-2 天 新手友好度 48/100
oracle/oci-java-sdk#726 · 1 条评论 ·
-
Object Storage
难度 4/5 3-5 天 新手友好度 25/100
oracle/oci-java-sdk#723 · 1 个 reaction ·
查看 oracle/oci-java-sdk 的全部 Issue
相似的 Issue
-
enhancement infra
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
5.0.x backport bug
难度 1/5 1 小时以内 新手友好度 68/100
spring-cloud/spring-cloud-function#1569 ·
维护者通常 1 天内回复
-
Move the spring-cloud-commons version and BOM import from the bus parent to the stream parent可能已有人在做 @olegz 今天认领。 未关闭task
难度 2/5 1-3 小时 新手友好度 74/100
spring-cloud/spring-cloud-stream#3355 ·
维护者通常 1 天内回复
-
area:cpan-port area:performance bug
难度 2/5 1-3 小时 新手友好度 72/100
fglock/PerlOnJava#2230 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100