SzyWilliam commented on PR #735: URL: https://github.com/apache/ratis/pull/735#issuecomment-1236118887
@szetszwo Hi, last time we have discussions on moving `ReadRequests` to `LeaderStateImpl`. It is inconvenient since we cannot initialize the `appliedIndexConsumer` in `StateMachineUpdater` constructor. Thus, I am thinking about separating `ReadIndexQueue` from `ReadRequests`, since 1. `ReadIndexQueue` should be accessed by both leader and follower peer after we implement **follower linearizable read**. 2. After separating, we can avoid the above inconveniences, placing the `ReadRequests` in `LeaderStateImpl` and `ReadIndexQueue` in `ServerState`. What do you think? -- 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]
