szetszwo commented on PR #1722: URL: https://github.com/apache/ratis/pull/1722#issuecomment-7433404412
> 2. The leader waits for applied index >= 10, but it already has 11, so it immediately queries its state machine and returns counter value 1 (new counter) > 3. Subsequent follower read will request for leader's repliedIndex and the leader returns the repliedIndex 10, so getReadIndex returns 10 @ivandika3 , The bug is that the leader replied 11 but still keeps repliedIndex == 10. So, the current fix updating with readIndex with appliedIndex seems correct. Will think about this again tomorrow. -- 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]
