gosonzhang opened a new issue, #11717:
URL: https://github.com/apache/inlong/issues/11717

   ### Description
   
   When the getClientByRoundRobin() function gets the DataProxy node, it uses 
[1]:
    curNode = curNodes.get(Math.abs(startPos++) % curNodeSize);
   
   Some users reported that the array is out of bounds. Although the code 
review shows that it does not appear here, in order to avoid this situation, 
rewrite it here to eliminate this type of problem
   
   
   
   1. 
https://github.com/apache/inlong/blob/master/inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/network/tcp/TcpClientMgr.java#L336
   
   
![Image](https://github.com/user-attachments/assets/902399df-dc4e-4eee-98aa-07c41b9a3fb2)
   
   ### InLong Component
   
   InLong SDK
   
   ### Are you willing to submit PR?
   
   - [x] 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: dev-unsubscr...@inlong.apache.org.apache.org

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

Reply via email to