vldpyatkov commented on code in PR #3007:
URL: https://github.com/apache/ignite-3/pull/3007#discussion_r1440638855


##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -423,8 +422,11 @@ private void markLocksReleased(UUID txId) {
         });
     }
 
-    private CompletableFuture<Boolean> 
onPrimaryExpired(PrimaryReplicaEventParameters evt, @Nullable Throwable 
exception) {
-        if (!localNode.name().equals(evt.leaseholder()) || 
!replicationGroupId.equals(evt.groupId())) {
+    @Override
+    public CompletableFuture<Boolean> 
onPrimaryExpired(PrimaryReplicaEventParameters evt, @Nullable Throwable 
exception) {
+        assert replicationGroupId.equals(evt.groupId());

Review Comment:
   Add a message for this assertion.



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