TangSiyang2001 opened a new pull request, #18180: URL: https://github.com/apache/doris/pull/18180
# Proposed changes Issue Number: close #16300 ## Problem summary Found that RPC timeout is too short that RPC client will close before execute result is return. Therefor, use a coefficient to prolong the RPC client timeout, so that it can wait for the real cause to be recieved. Before: ``` mysql> insert into lineorder select * from lineorder limit 10000000; ERROR 1105 (HY000): ForwardToMasterException, msg: org.apache.doris.qe.MasterOpExecutor$ForwardToMasterException: Forward statement 21 to Master TNetworkAddress(hostname:127.0.0.1, port:9020) failed, cause: Unknown exception ``` After: ``` mysql> select count(*) from customer; +----------+ | count(*) | +----------+ | 19200000 | +----------+ 1 row in set (0.14 sec) mysql> set query_timeout=1; Query OK, 0 rows affected (0.00 sec) mysql> set insert_timeout=1; Query OK, 0 rows affected (0.00 sec) mysql> insert into customer select * from customer limit 10000000; ERROR 1105 (HY000): errCode = 2, detailMessage = Execute timeout mysql> select * from customer; ERROR 1105 (HY000): errCode = 2, detailMessage = query timeout mysql> set forward_to_master=true; Query OK, 0 rows affected (0.00 sec) mysql> insert into customer select * from customer limit 10000000; ERROR 1105 (HY000): errCode = 2, detailMessage = Execute timeout mysql> select * from customer; ERROR 1105 (HY000): errCode = 2, detailMessage = query timeout ``` ## Checklist(Required) * [ ] Does it affect the original behavior * [ ] Has unit tests been added * [ ] Has document been added or modified * [ ] Does it need to update dependencies * [x] Is this PR support rollback (If NO, please explain WHY) ## Further comments If this is a relatively large or complex change, kick off the discussion at [[email protected]](mailto:[email protected]) by explaining why you chose the solution you did and what alternatives you considered, etc... -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
