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/17 19:29:15 UTC

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

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


##########
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:
   May be add here
   ```
   }
   else 
       cp.parts = null
   
   ```



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