Github user jiazhai commented on a diff in the pull request: https://github.com/apache/incubator-distributedlog/pull/133#discussion_r119984733 --- Diff: distributedlog-core/src/main/java/org/apache/distributedlog/bk/SimpleLedgerAllocator.java --- @@ -105,73 +103,71 @@ public ConcurrentObtainException(Phase phase, String msg) { // Allocated Ledger LedgerHandle allocatedLh = null; - Future<Void> closeFuture = null; - final LinkedList<Future<Void>> ledgerDeletions = - new LinkedList<Future<Void>>(); + CompletableFuture<Void> closeFuture = null; + final LinkedList<CompletableFuture<Void>> ledgerDeletions = + new LinkedList<CompletableFuture<Void>>(); // Ledger configuration private final QuorumConfigProvider quorumConfigProvider; - static Future<Versioned<byte[]>> getAndCreateAllocationData(final String allocatePath, + static CompletableFuture<Versioned<byte[]>> getAndCreateAllocationData(final String allocatePath, --- End diff -- Please also do the code alignment change here, and also at line 128, 159.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---