You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "szetszwo (via GitHub)" <gi...@apache.org> on 2024/09/04 16:07:47 UTC

Re: [PR] RATIS-2148.Grpc streaming snapshot transfer may cause followers to trigger reloadStateMachine incorrectly [ratis]

szetszwo commented on code in PR #1145:
URL: https://github.com/apache/ratis/pull/1145#discussion_r1744065033


##########
ratis-server/src/main/java/org/apache/ratis/server/impl/SnapshotInstallationHandler.java:
##########
@@ -68,6 +68,7 @@ class SnapshotInstallationHandler {
     new AtomicReference<>(INVALID_TERM_INDEX);
   private final AtomicBoolean isSnapshotNull = new AtomicBoolean();
   private final AtomicLong installedIndex = new AtomicLong(INVALID_LOG_INDEX);
+  private final AtomicBoolean isSnapshotInstallSuccess = new AtomicBoolean(true);

Review Comment:
   Let's use the chunk request index instead of a boolean.



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