wernerdv commented on code in PR #12487:
URL: https://github.com/apache/ignite/pull/12487#discussion_r2486858171


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsExchangeFuture.java:
##########
@@ -4665,11 +4665,13 @@ private void 
updatePartitionFullMap(AffinityTopologyVersion resTopVer, GridDhtPa
                     CacheGroupContext grp = cctx.cache().cacheGroup(grpId);
 
                     if (grp != null) {
+                        PartitionSizesMap sizesMap = partsSizes.get(grpId);
+
                         grp.topology().update(resTopVer,
                             msg.partitions().get(grpId),
                             cntrMap,
                             msg.partsToReload(cctx.localNodeId(), grpId),
-                            partsSizes.getOrDefault(grpId, 
Collections.emptyMap()),
+                            sizesMap != null ? sizesMap.partitionSizes() : 
Collections.emptyMap(),

Review Comment:
   `PartitionSizesMap sizesMap` does not implement the `Map` interface.
   Added invocation of `F#emptyIfNull` for maps in 
`PartitionSizesMap#partitionSizes`.
   



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