tkalkirill commented on code in PR #4679: URL: https://github.com/apache/ignite-3/pull/4679#discussion_r1830357508
########## modules/rocksdb-common/src/main/java/org/apache/ignite/internal/rocksdb/flush/RocksDbFlusher.java: ########## @@ -279,6 +281,18 @@ public void stop() { * @return Future that completes when the {@code onFlushCompleted} callback finishes. */ CompletableFuture<Void> onFlushCompleted() { - return CompletableFuture.runAsync(onFlushCompleted, threadPool); + return inBusyLockSafeAsync(() -> runAsync(onFlushCompleted, threadPool)); + } + + private CompletableFuture<Void> inBusyLockSafeAsync(Supplier<CompletableFuture<Void>> supplier) { Review Comment: It doesn’t matter to me, I remember that we discussed it a long time ago in a slightly wider circle and came to the conclusion that such a convention is normal since we are returning the future. -- 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