terrymanu commented on a change in pull request #10189:
URL: https://github.com/apache/shardingsphere/pull/10189#discussion_r619768636



##########
File path: 
shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-core/src/main/java/org/apache/shardingsphere/proxy/frontend/state/impl/OKProxyState.java
##########
@@ -40,5 +40,6 @@ public void execute(final ChannelHandlerContext context, 
final Object message, f
         ExecutorService executorService = 
CommandExecutorSelector.getExecutorService(
                 isOccupyThreadForPerConnection, supportHint, 
backendConnection.getTransactionStatus().getTransactionType(), 
context.channel().id());
         executorService.execute(new 
CommandExecutorTask(databaseProtocolFrontendEngine, backendConnection, context, 
message));
+        backendConnection.getSubmittedTaskCount().incrementAndGet();

Review comment:
       How about change seq of line 42 and 43? 
   It seems better to increment count before task execute.




-- 
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.

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


Reply via email to