sashapolo commented on code in PR #5212:
URL: https://github.com/apache/ignite-3/pull/5212#discussion_r1955086428


##########
modules/partition-replicator/src/main/java/org/apache/ignite/internal/partition/replicator/raft/snapshot/outgoing/OutgoingSnapshot.java:
##########
@@ -162,30 +170,38 @@ void freezeScopeUnderMvLock() {
         try {
             frozenMeta = takeSnapshotMeta();
 
-            txDataCursor = partition.getAllTxMeta();
+            txDataCursor = txState.getAllTxMeta();
         } finally {
             releaseMvLock();
         }
     }
 
     private PartitionSnapshotMeta takeSnapshotMeta() {
-        RaftGroupConfiguration config = 
partition.committedGroupConfiguration();
+        PartitionStorageAccess partitionStorageWithMaxAppliedIndex = 
partitionsByTableId.values().stream()
+                .max(comparingLong(PartitionStorageAccess::lastAppliedIndex))
+                .orElseThrow();

Review Comment:
   This is quite a big issue, I've created a ticket and added a TODO: 
https://issues.apache.org/jira/browse/IGNITE-24517



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