You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2022/08/18 07:40:06 UTC

[GitHub] [ignite] sk0x50 commented on a diff in pull request #10201: IGNITE-17542 Fixed an issue with modifying CacheAffinityChangeMessage…

sk0x50 commented on code in PR #10201:
URL: https://github.com/apache/ignite/pull/10201#discussion_r948757469


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsFullMessage.java:
##########
@@ -178,6 +178,21 @@ public GridDhtPartitionsFullMessage(@Nullable GridDhtPartitionExchangeId id,
         GridDhtPartitionsFullMessage cp = (GridDhtPartitionsFullMessage)msg;
 
         cp.parts = parts;
+        if (parts != null) {
+            cp.parts = new HashMap<>(parts.size());
+
+            for (Map.Entry<Integer, GridDhtPartitionFullMap> e : parts.entrySet()) {
+                GridDhtPartitionFullMap val = e.getValue();
+
+                cp.parts.put(e.getKey(), new GridDhtPartitionFullMap(
+                    val.nodeId(),
+                    val.nodeOrder(),
+                    val.updateSequence(),
+                    val,
+                    false));
+            }
+        }
+

Review Comment:
   Yes, I will fix this.



-- 
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-unsubscribe@ignite.apache.org

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