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


##########
modules/placement-driver-api/src/testFixtures/java/org/apache/ignite/internal/placementdriver/TestPlacementDriver.java:
##########
@@ -127,19 +127,20 @@ public void setPrimaryReplicaSupplier(Supplier<? extends 
TestReplicaMetaImpl> pr
 
         TestReplicaMetaImpl replicaMeta = primaryReplicaSupplier.get();
 
-        fireEvent(
-                PrimaryReplicaEvent.PRIMARY_REPLICA_ELECTED,
-                new PrimaryReplicaEventParameters(
-                        // The only usage of causality token below is 
IndexBuildController that doesn't use in tests, so the actual value
-                        // doesn't matter there yet.
-                        0,
-                        replicaMeta.getReplicationGroupId(),
-                        replicaMeta.getLeaseholderId(),
-                        replicaMeta.getLeaseholder(),
-                        replicaMeta.getStartTime()
-                )
-        );
-
+        if (replicaMeta != null) {

Review Comment:
   Currently no, it's an artifact from my precious solution. Removed.



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to