ivandika3 opened a new pull request, #1721:
URL: https://github.com/apache/ratis/pull/1721

   ## What changes were proposed in this pull request?
   
   Generated-by: GPT 6.1 Sol
   
   Please see https://issues.apache.org/jira/browse/RATIS-2849
   
   We need to add callId for StartLeaderElection request and response to 
correlate a specific request with a response. Technically, this only affects 
Netty transport (not gRPC) since gRPC internal logic already correlate the 
request and response internally. However, in Netty transport, 
NettyRpcProxy.Connection.replies is a map of CallID -> Reply. If we don't set 
this and there are two concurrent requests with default CallID 0, the latter 
request will fail the `Preconditions.assertNull(previous, "previous")` and this 
can make the latter request to timeout, among other possible issues.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/RATIS-2849
   
   ## How was this patch tested?
   
   UT.
   


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

Reply via email to