You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by GitBox <gi...@apache.org> on 2022/09/03 13:16:57 UTC

[GitHub] [ratis] SzyWilliam commented on pull request #735: RATIS-1696. Support linearizable read-only requests in leader

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: issues-unsubscribe@ratis.apache.org

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