sanpwc commented on code in PR #2883:
URL: https://github.com/apache/ignite-3/pull/2883#discussion_r1408873131


##########
modules/replicator/src/main/java/org/apache/ignite/internal/replicator/message/PrimaryReplicaRequest.java:
##########
@@ -21,4 +21,11 @@
  * This is an interface for requests are designed for primary replica.
  */
 public interface PrimaryReplicaRequest extends ReplicaRequest {
+    /**
+     * Gets an enlistment consistency token.
+     * The token is used to check that the lease is still actual while the 
message goes to the replica.
+     *
+     * @return Enlistment consistency token.
+     */
+    long enlistmentConsistencyToken();

Review Comment:
   Why it's long and not Long? Originally it was marked as @Nullable and by the 
fact that you've added an assert within `ensureReplicaIsPrimary` I believe that 
it's no longer true. Thus I'd rather have it Long without @Nullable - in that 
case we will check whether proper value is propagated to a message or not.



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