-
Notifications
You must be signed in to change notification settings - Fork 163
SDK will deadlock for no apparent reason. #596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here's my (abridged) dependency pom: <dependencyManagement>
<dependencies>
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-bom</artifactId>
<version>3.39.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common-httpclient-jersey</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-core</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-containerinstances</artifactId>
<scope>compile</scope>
</dependency>
</dependencies> |
I am able to avoid this issue by disabling the Apache Http Connector: .clientConfigurator(builder -> {
builder.property(JerseyClientProperties.USE_APACHE_CONNECTOR, false);
}) |
I am already using 3.39.0. I believe this is a separate issue from 587 :) |
Can you please share the stack trace? Also, which Jersey version are you using? |
One thing you could try is setting the system property
Please let me know if it works after setting this property. |
Also, if are you using inputstreams, you need to close all input streams obtained from the response object. See here - |
I had setup my own watchdog to kill connections after a few seconds (or minutes, for some other calls). It calls 3.39.0 :)
Unfortunately I can't test this, but it does appear to be an issue with the Apache connector.
I am not. Just simple GetContainerStatus and CreateContainerInstance calls which do not appear to have a closeable response. Sorry that I can't get the testing in, I don't really have the budget to throw at reproduction and I also can't break the production services that rely on this 😛 |
Has it been resolved now?I am already using 3.39.0. too :)Is this the only way to do it?USE_APACHE_CONNECTOR, false |
Hi there! There appears to be a deadlock in the Oracle SDK that causes it to hang indefinitely. Any and all requests will block forever. Nothing will break it out of this, and interrupting the thread doesn't fix the underlying issue. I have to fully kill the application and restart it.
There are no logs, and the only reproduction I have is to use the
containerinstances
SDK for a couple of days.The text was updated successfully, but these errors were encountered: