ptupitsyn commented on code in PR #11328:
URL: https://github.com/apache/ignite/pull/11328#discussion_r1592031515


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/platform/client/ClientRequestHandler.java:
##########
@@ -118,9 +121,20 @@ private ClientListenerResponse 
handle0(ClientListenerRequest req) {
         if (req0.isAsync(ctx)) {
             IgniteInternalFuture<ClientResponse> fut = req0.processAsync(ctx);
 
+            if (!fut.isDone()) {
+                try {
+                    // Give request a chance to be executed and response 
processed by the current thread,
+                    // so we can avoid any performance drops caused by async 
requests execution.
+                    fut.get(ASYNC_REQUEST_WAIT_TIMEOUT);

Review Comment:
   > not IO thread, it's client-connector thread
   
   `client-connector` does IO, that's what I had in mind.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to