Elia-Renzoni commented on code in PR #1652:
URL: https://github.com/apache/ratis/pull/1652#discussion_r4349113790


##########
ratis-proto/src/main/proto/Raft.proto:
##########
@@ -304,6 +304,7 @@ message ReadRequestTypeProto {
   bool preferNonLinearizable = 1;
   bool readAfterWriteConsistent = 2;
   bool dummy = 3;
+  bool strongReadAfterWrite = 4;

Review Comment:
   Fixed here: 63f18c747c25066b17327329e508efe60cdf5514



##########
ratis-server/src/main/java/org/apache/ratis/server/impl/WriteIndexCache.java:
##########
@@ -27,11 +27,16 @@
 
 import java.util.concurrent.CompletableFuture;
 import java.util.concurrent.ExecutionException;
+import java.util.concurrent.atomic.AtomicLong;
 import java.util.concurrent.atomic.AtomicReference;
 
-/** Caching the per client write index in order to support read-after-write 
consistency. */
+/**
+ * Caching the per client write index in order to support read-after-write 
consistency.
+ * Also track the latest write index of all the clients in order to support 
strong read-after-write consistency.
+ */
 class WriteIndexCache {
   private final Cache<ClientId, AtomicReference<CompletableFuture<Long>>> 
cache;
+  private final AtomicLong latestWriteIndex;

Review Comment:
   Fixed here: 63f18c747c25066b17327329e508efe60cdf5514



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

Reply via email to