cambyzju opened a new issue, #31569:
URL: https://github.com/apache/doris/issues/31569

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   master & 2.0
   
   ### What's Wrong?
   
   If current running connections bigger than qe_max_connection, new connection 
will hang
   
   ### What You Expected?
   
   return error instead of hang
   
   ### How to Reproduce?
   
   1. set qe_max_connection=2 in fe.conf;
   2. run two SQL: `select sleep(300)`;
   3. run three SQL: `select 1`;
   
   In the log we found, the third sql already been rejected, and will not be 
executed anymore, the third connection hanged.
   
   `2024-02-29 11:55:49,299 WARN (doris-mysql-nio I/O-2|193) 
[ThreadPoolManager$LogDiscardPolicy.rejectedExecution():305] Task 
org.apache.doris.mysql.AcceptListener$$Lambda$1918/502547814@1a81657b rejected 
from mysql-nio-pool java.util.concurrent.ThreadPoolExecutor@59bfd0bf[Running, 
pool size = 2, active threads = 2, queued tasks = 0, completed tasks = 24]`
   
   
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscr...@doris.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to