oracle / oci-java-sdk

Oracle Cloud Infrastructure SDK for Java
https://cloud.oracle.com/cloud-infrastructure
Other
192 stars 152 forks source link

OCI Java SDK 2.66.0 Stream Uploads Buffer Data Unnecessarily and May Cause OutOfMemoryError #601

Open mricken opened 1 month ago

mricken commented 1 month ago

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:

Fix:

Other possible work-arounds (not recommended anymore):