alievmirza commented on code in PR #5726:
URL: https://github.com/apache/ignite-3/pull/5726#discussion_r2068661444


##########
modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/rebalance/ZoneRebalanceUtil.java:
##########
@@ -599,11 +599,37 @@ public static List<Assignments> zoneAssignmentsGetLocally(
     ) {
         return IntStream.range(0, numberOfPartitions)
                 .mapToObj(p -> {
-                    Entry e = 
metaStorageManager.getLocally(stablePartAssignmentsKey(new 
ZonePartitionId(zoneId, p)), revision);
+                    Assignments assignments =
+                            
zoneStableAssignmentsGetLocally(metaStorageManager, new ZonePartitionId(zoneId, 
p), revision);
+
+                    assert assignments != null

Review Comment:
   We just print the same `null` without any messages, looks strange. 
   
   `metaStorageManager.getLocally(stablePartAssignmentsKey(new 
ZonePartitionId(zoneId, p)), revision) == null`, we just received previously in 
   
   
   ```
   Assignments assignments =
                               
zoneStableAssignmentsGetLocally(metaStorageManager, new ZonePartitionId(zoneId, 
p), revision);
   ```



##########
modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/rebalance/ZoneRebalanceUtil.java:
##########
@@ -599,11 +599,37 @@ public static List<Assignments> zoneAssignmentsGetLocally(
     ) {
         return IntStream.range(0, numberOfPartitions)
                 .mapToObj(p -> {
-                    Entry e = 
metaStorageManager.getLocally(stablePartAssignmentsKey(new 
ZonePartitionId(zoneId, p)), revision);
+                    Assignments assignments =
+                            
zoneStableAssignmentsGetLocally(metaStorageManager, new ZonePartitionId(zoneId, 
p), revision);
+
+                    assert assignments != null

Review Comment:
   We just print the same `null` without any messages, looks strange. 
   
   `metaStorageManager.getLocally(stablePartAssignmentsKey(new 
ZonePartitionId(zoneId, p)), revision) == null`, we just received it previously 
in 
   
   
   ```
   Assignments assignments =
                               
zoneStableAssignmentsGetLocally(metaStorageManager, new ZonePartitionId(zoneId, 
p), revision);
   ```



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