oci-java-sdk icon indicating copy to clipboard operation
oci-java-sdk copied to clipboard

Potential deadlock issue in Versions 3.50.1 to 3.65.1 (Fixed in 3.66.0)

Open y-chandra opened this issue 6 months ago • 0 comments

If you are using any OCI Java SDK version(s) >= 3.50.1 and <= 3.65.1, then you might be affected by a potential deadlock issue. We recommend you to update to version 3.66.0 or later. If you are not using any of the affected OCI Java SDK versions, you can ignore this issue.

Description When using OCI Java SDK version(s) >= 3.50.1 and <= 3.65.1, you might a run into a deadlock scenario with the method com.oracle.bmc.http.client.pki.Utf8.of. The method Utf8.of off-loads its read to CompletableFuture.runAsync() on the global ForkJoinPool.commonPool and immediately calls .join(). In parallel workloads, when this method is invoked from multiple common-pool threads, the very threads needed to run the background read are all blocked in join(). The future’s task never executes, starving the pool and causing a hard deadlock. This issue has been fixed in version 3.66.0.

Affected Versions

Actions Update the OCI Java SDK version to 3.66.0 or later.

y-chandra avatar Jul 22 '25 23:07 y-chandra