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/12/08 19:55:55 UTC

[GitHub] [ratis] szetszwo commented on pull request #797: RATIS-1758. Add linearizable read in Counter example

szetszwo commented on PR #797:
URL: https://github.com/apache/ratis/pull/797#issuecomment-1343277835

   @SzyWilliam , I got some idea to use the Counter example to test Linearizable Read:
   - Add a configurable SIMULATED_SLOWNESS to the `CounterStateMachine` -- add a sleep time such that it will sleep in each `applyTransaction(..)` call.
   - Setup a 3-node (n0, n1, n2) cluster as following
     - Set n0 to have a higher priority, so it will always be the leader.
     - Set n1 to be slow -- set SIMULATED_SLOWNESS to 1 second or higher.
   - After the cluster started
     - run a client to update the leader 10 times.
     - after that, read from the n1 to see if it will wait (~10s) and get the latest value.


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