NSAmelchev commented on code in PR #12288: URL: https://github.com/apache/ignite/pull/12288#discussion_r2324176980
########## modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/topology/GridDhtPartitionTopologyImpl.java: ########## @@ -3273,6 +3245,95 @@ private void consistencyCheck() { // No-op. } + /** */ + private void restoreLostPartitions(CacheGroupRecoveryState grpState) { + grpState.lostParititons().forEach(this::registerLostPartition); + } + + /** */ + private void detectPartitionLossDuringInactivity(CacheGroupRecoveryState grpState) { + Set<Integer> recoveryZeroParts = grpState.zeroUpdateCounterParititons(); + + Set<Integer> detectedLostParts = new HashSet<>(); + + for (int zeroPart : cntrMap.zeroUpdateCounterPartitions()) { + if (!recoveryZeroParts.contains(zeroPart)) + detectedLostParts.add(zeroPart); + } + + detectedLostParts.forEach(this::registerLostPartition); + + if (!detectedLostParts.isEmpty()) { + U.warn(log, "Cache group partitions were not restored from the PDS during cluster activation, but were" + Review Comment: Let's give a clear reason — the files were deleted or not found, etc. -- 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-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org