OCI Java SDK 2.66.0 Stream Uploads Buffer Data Unnecessarily and May Cause OutOfMemoryError
还没有人认领这个 Issue。
评估
调研方向
从 ApacheConnector-README.md 以及 issue 中列出的 Object Storage 流上传入口开始,包括 putObject 和 uploadPart。确认 OCI Java SDK 2.66.0 的行为,并将完成定义为防止不必要的流缓冲,同时不影响已说明的安全版本指导。
由索引模型根据 Issue 内容生成。
描述
Upgrade to OCI Java SDK version 2.72.0 if you are currently using 2.66.0.
The OCI Java SDK version 2.66.0 contains a bug that causes it to buffer streams unnecessarily. For example, if you upload a stream of size 1 GiB, this will cause the OCI Java SDK to buffer an additional 1 GiB in the heap. This additional memory demand may cause an OutOfMemoryError.
The latest safe version is 2.65.1.
OCI Java SDK 3.x is not affected.
You are affected if:
- you use version
2.66.0 - and you use the Apache Connector (which is the default connector in the OCI Java SDK)
- and you upload streams (e.g. using Object Storage's
putObjectoruploadPartoperations)
Fix:
- Upgrade to version
2.72.0: https://github.com/oracle/oci-java-sdk/releases/tag/v2.72.0
Other possible work-arounds (not recommended anymore):
- downgrade to
2.65.1 - disable the Apache Connector and use the Jersey Default
HttpUrlConnectorProviderinstead (see https://github.com/oracle/oci-java-sdk/blob/v2.65.1/ApacheConnector-README.md )
- 主要语言
- 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