maksaska commented on code in PR #13627:
URL: https://github.com/apache/ignite/pull/13627#discussion_r4540931782


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/topology/GridDhtPartitionTopologyImpl.java:
##########
@@ -1616,14 +1619,18 @@ private boolean 
shouldOverridePartitionMap(GridDhtPartitionMap currentMap, GridD
                         this.lostParts = new HashSet<>(lostParts);
 
                         if (exchFut != null && !exchFut.activateCluster()) {
+                            boolean ownerReports =
+                                
ctx.kernalContext().rollingUpgrade().features().isActive(PART_STATE_FROM_OWNER_FEATURE);
+
                             for (Integer part : lostParts) {
                                 GridDhtLocalPartition locPart = 
localPartition(part);
 
                                 // EVICTED partitions should not be marked 
directly as LOST, or
                                 // part.clearFuture lifecycle will be broken 
after resetting.
                                 // New partition should be created instead.
                                 if (locPart != null && locPart.state() != 
EVICTED) {
-                                    locPart.markLost();
+                                    if (locPart.markLost() && ownerReports)
+                                        changed = true;

Review Comment:
   Done



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