ryanzryu opened a new pull request, #26805:
URL: https://github.com/apache/doris/pull/26805

   
   Thrift server reads the first four bytes of a packet as the packet size, and 
without setting the string_limit parameter, it will directly request the memory 
corresponding to the packet size represented by the first four bytes. When 
receiving an error or large packet, it is easy to encounter OOM.
   
![image](https://github.com/apache/doris/assets/143597717/f17ae7bb-2ffa-404f-80be-a4319f04c934)
   
   
   Doris currently does not set the string_limit parameter, so when receiving a 
corrupted packet, it is easy to encounter OOM.
   
   We can send multiple HTTP packets to the Thrift port simultaneously to 
reproduceļ¼š
   #/bin/bash
   for (( i=0; i< 20 ;i++))
   do
   curl -X POST -d'{test}' "http://127.0.0.1:9020/"; &
   done
   
   This PR add string_limit parameter for be and fe thrift server
   
   I have submitted another identical PR to the 1.2 branch.
   


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

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