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

   ## What changes were proposed in this pull request?
   
   When applying a committed write, `RaftServerImpl#replyPendingRequest()` 
replaces a failed RetryCache entry with a new pending entry. However, it 
ignores the entry returned by `refreshEntry()`, and the reply callback still 
uses the original failed entry.
   - Complete the reply future of the replacement entry returned by 
`refreshEntry()`.
   - Add `testRetryCacheCompletesAfterLeaderTransfer` to verify that the former 
leader completes the replacement cache entry after applying a write retried on 
the new leader.
   
   ## What is the link to the Apache JIRA
   
   [RATIS-2814](https://issues.apache.org/jira/browse/RATIS-2814)
   
   ## How was this patch tested?
   
   Tested locally.
   
   - `TestLeaderElectionWithGrpc`


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