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


##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java:
##########
@@ -2703,9 +2705,25 @@ private CompletableFuture<Void> 
destroyPartitionStorages(TablePartitionId tableP
             destroyFutures.add(runAsync(() -> 
internalTable.txStateStorage().destroyTxStateStorage(partitionId), ioExecutor));
         }
 
+        destroyFutures.add(
+                supplyAsync(() -> 
destroyReplicationProtocolStorages(tablePartitionId, table), 
ioExecutor).thenCompose(identity())
+        );
+
         return allOf(destroyFutures.toArray(new CompletableFuture[]{}));
     }
 
+    private CompletableFuture<Object> 
destroyReplicationProtocolStorages(TablePartitionId tablePartitionId, TableImpl 
table) {

Review Comment:
   Since you are using `supplyAsync` you can wrap the exception in 
`CompletionException`



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

Reply via email to