You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
rkumarpa
added
the
SDK
Issue pertains to the SDK itself and not specific to any service
label
Mar 23, 2023
rkumarpa
changed the title
Race condition in CircuitBreaker leading to NoSuchElementException
Race condition in CircuitBreaker leading to NoSuchElementException in OCI Java SDK
Mar 23, 2023
jodoglevy
changed the title
Race condition in CircuitBreaker leading to NoSuchElementException in OCI Java SDK
Race condition in CircuitBreaker leading to NoSuchElementException
Mar 25, 2023
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 version2.51.2
orlater
. 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
orlater
.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 withNoSuchElementException
when trying to remove elements fromhistoryQueue
. 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 labelDo not use this version
in the SDK's GitHub Releases.Solution
Update to version
2.51.2
orlater
.The text was updated successfully, but these errors were encountered: