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


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

Review Comment:
   I see, didn't notice the other usage



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