sk0x50 commented on code in PR #5276:
URL: https://github.com/apache/ignite-3/pull/5276#discussion_r1981182888


##########
modules/index/src/main/java/org/apache/ignite/internal/index/IndexBuildController.java:
##########
@@ -184,60 +232,104 @@ private CompletableFuture<?> 
onIndexRemoved(RemoveIndexEventParameters parameter
 
     private CompletableFuture<?> 
onPrimaryReplicaElected(PrimaryReplicaEventParameters parameters) {
         return inBusyLockAsync(busyLock, () -> {
-            TablePartitionId primaryReplicaId = (TablePartitionId) 
parameters.groupId();
-
             if (isLocalNode(clusterService, parameters.leaseholderId())) {
-                primaryReplicaIds.add(primaryReplicaId);
+                // TODO https://issues.apache.org/jira/browse/IGNITE-22522
+                // Need to remove TablePartitionId check here and below.
+                assert parameters.groupId() instanceof ZonePartitionId || 
parameters.groupId() instanceof TablePartitionId :

Review Comment:
   I would stay with an additional log that includes a class name. The reason 
for this is that `TablePartitionId` and `ZonePartitionId` will be logged in the 
same way; for example, `3_part_0` does not provide any clue... `3` is this 
tableId, zoneId, or something else? I think it's a little more convenient to 
have a class name here.



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