tkalkirill commented on code in PR #1325:
URL: https://github.com/apache/ignite-3/pull/1325#discussion_r1031119437


##########
modules/storage-page-memory/src/main/java/org/apache/ignite/internal/storage/pagememory/PersistentPageMemoryTableStorage.java:
##########
@@ -418,4 +430,43 @@ public CompletableFuture<Void> 
finishRebalanceMvPartition(int partitionId) {
         // TODO: IGNITE-18029 Implement
         throw new UnsupportedOperationException();
     }
+
+    @Override
+    public void destroyMvPartitionStorage(AbstractPageMemoryMvPartitionStorage 
mvPartitionStorage) throws StorageException {
+        int partitionId = mvPartitionStorage.partitionId();
+
+        CompletableFuture<Void> previousFuture = 
destroyFutureByPartitionId.put(partitionId, new CompletableFuture<>());
+
+        assert previousFuture == null : "Previous destruction of the partition 
has not completed: " + partitionId;
+
+        // It is enough for us to close the partition storage and its indexes 
(do not destroy), perform some actions, and then simply

Review Comment:
   Tried to fix it



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