shishkovilja commented on code in PR #12508:
URL: https://github.com/apache/ignite/pull/12508#discussion_r2518867164


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsExchangeFuture.java:
##########
@@ -2954,7 +2960,7 @@ public void forceClientReconnect(ClusterNode node, 
GridDhtPartitionsSingleMessag
 
         GridDhtPartitionsFullMessage fullMsg = createPartitionsMessage(true);
 
-        fullMsg.setErrorsMap(exchangeGlobalExceptions);
+        fullMsg.errorsMap(F.viewReadOnly(exchangeGlobalExceptions, e -> e));

Review Comment:
   What is purpose of this modification?



##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsExchangeFuture.java:
##########
@@ -2179,7 +2179,7 @@ private GridDhtPartitionsFullMessage 
createPartitionsMessage(boolean compress) {
             partsToReload);
 
         if (stateChangeExchange() && !F.isEmpty(exchangeGlobalExceptions))
-            m.setErrorsMap(exchangeGlobalExceptions);
+            m.errorsMap(F.viewReadOnly(exchangeGlobalExceptions, e -> e));

Review Comment:
   What is purpose of this modification?



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