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 12:45:01 UTC

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

codings-dan commented on code in PR #797:
URL: https://github.com/apache/ratis/pull/797#discussion_r1043309170


##########
ratis-examples/src/main/java/org/apache/ratis/examples/counter/server/CounterServer.java:
##########
@@ -52,6 +52,7 @@ public CounterServer(RaftPeer peer, File storageDir) throws IOException {
 
     //set the storage directory (different for each peer) in the RaftProperty object
     RaftServerConfigKeys.setStorageDir(properties, Collections.singletonList(storageDir));
+    RaftServerConfigKeys.Read.setOption(properties, RaftServerConfigKeys.Read.Option.LINEARIZABLE);

Review Comment:
   Please add a comment to explain what this parameter does



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