-
Notifications
You must be signed in to change notification settings - Fork 7
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
Agent.queryRaw - requests sometimes hang on without any result #3
Comments
Hi Alexander, which version of Java are you using? I noticed some issues that Apache HTTP client has with certain Java versions. |
java version "1.8.0_321" |
Hmm, I am working on new Agent version too now. Maybe there is some unhandled exception. I will add some additional log messages and push beta version out. Give me day or two. |
I have changed my code to this method:
of the class CompletableFuture instead of simple get() without parameters. |
Thanks Alexander, this is actually great suggestion, especially for update operations, where we already know expiration time. I am using get method in some internal calls as well (just to simplify calls interface for users) but I should set timeout there |
Hello,
We sometimes have a strange problem. Once in a few days query request to IC hang on and there are no any result, even exception. Bad thing is that I cannot reproduce it in a test.
Here is the information that I have found so far.
Example code:
Calling method 'responseCompletableFuture.get();' hangs on forever.
Source code - ReplicaApacheHttpTransport
Line 198
After calling method 'client.execute' methods of interface FutureCallback (complete, failed and cancelled) not called.
Source code - InternalAbstractHttpAsyncClient (httpclient5-5.1.3.jar)
Line 223
After method execution 'executeImmediate' no any method was called of 'AsyncExecCallback'.
Best regards,
Alexander
The text was updated successfully, but these errors were encountered: