TeslaCN opened a new issue, #23146:
URL: https://github.com/apache/shardingsphere/issues/23146
## Bug Report
### Which version of ShardingSphere did you use?
master - 92f74f008acfe207cee7674a49acb4699173dd5d
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-Proxy MySQL
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule
configuration, when exception occur etc.
```yaml
props:
proxy-frontend-max-connections: 1
```
Connect ShardingSphere-Proxy from 2 clients.
### Expected behavior
The second client got too many connection error.
### Actual behavior
```
wuweijie$ mysql -h 127.0.0.1 -proot --ssl-mode=disable -P13306 -A
mysql: [Warning] Using a password on the command line interface can be
insecure.
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial
communication packet', system error: 0
```
```
Exception in thread "ShardingSphere-Command-0"
java.lang.NullPointerException: Cannot invoke
"java.util.concurrent.ExecutorService.shutdown()" because "executorService" is
null
at
org.apache.shardingsphere.proxy.frontend.executor.ConnectionThreadExecutorGroup.unregisterAndAwaitTermination(ConnectionThreadExecutorGroup.java:84)
at
org.apache.shardingsphere.proxy.frontend.netty.FrontendChannelInboundHandler.closeAllResources(FrontendChannelInboundHandler.java:102)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
```
--
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]