anmui commented on PR #24227:
URL: https://github.com/apache/shardingsphere/pull/24227#issuecomment-1438437668

   @RaigorJiang 
   I seem to know why it always reports that connect close is wrong 😢
   
   If **_proxy-hint-enabled=true_**, the thread processing model of 
Proxy-OKProxyState is changed from IO multiplexing to an independent thread for 
each request
   
   The **_proxy-hint-enabled=true_** configured in the test environment, so it 
will establish an independent thread for each request. If the parameter is 
removed, it will become a reused connection. If the reused connection is 
closed, other requests cannot be executed
   
          
System.out.println(requireOccupyThreadForConnection(connectionSession));  
//false
          
System.out.println(connectionSession.getTransactionStatus().getTransactionType());
 //false
           if (requireOccupyThreadForConnection(connectionSession)) {
               return 
ConnectionThreadExecutorGroup.getInstance().get(connectionSession.getConnectionId());
           }
           System.out.println("isPreferNettyEventLoop:" + 
isPreferNettyEventLoop()); //false
           if (isPreferNettyEventLoop()) {
               return context.executor();
           }
           System.out.println("isRequiredSameThreadForConnection:" + 
databaseProtocolFrontendEngine.getFrontendContext().isRequiredSameThreadForConnection(message));
 //false
           if 
(databaseProtocolFrontendEngine.getFrontendContext().isRequiredSameThreadForConnection(message))
 {
               return 
ConnectionThreadExecutorGroup.getInstance().get(connectionSession.getConnectionId());
           }
           // return UserExecutorGroup.getInstance().getExecutorService();
           return 
ConnectionThreadExecutorGroup.getInstance().get(connectionSession.getConnectionId());`
   
   👆Change it can success run
   
   So how do I deal with it? 
   Do I need to remove the **_proxy-hint-enabled=true_** 


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to