TeslaCN commented on pull request #11587: URL: https://github.com/apache/shardingsphere/pull/11587#issuecomment-899257604
Hi @jianliu I think the root cause of this issue is the incorrect connection status, merging this PR may solve this issue, but the connection status is still incorrect. How about moving the `connectionStatus.switchToReleased()` from the method `closeConnections` to `CommandExecuteTask`? Moving the following line https://github.com/apache/shardingsphere/blob/183f3b85e3ccea9fc410c91f7f4488ed8cc85b3b/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/connection/BackendConnection.java#L310 to here https://github.com/apache/shardingsphere/blob/183f3b85e3ccea9fc410c91f7f4488ed8cc85b3b/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-core/src/main/java/org/apache/shardingsphere/proxy/frontend/command/CommandExecutorTask.java#L84-L87 -- 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]
