diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/api/BookKeeper.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/api/BookKeeper.java index 7b041d9a70c..44c2b7b554a 100644 --- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/api/BookKeeper.java +++ b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/api/BookKeeper.java @@ -24,6 +24,7 @@ import org.apache.bookkeeper.client.impl.BookKeeperBuilderImpl; import org.apache.bookkeeper.common.annotation.InterfaceAudience.Public; import org.apache.bookkeeper.common.annotation.InterfaceStability.Unstable; +import org.apache.bookkeeper.common.concurrent.FutureUtils; import org.apache.bookkeeper.conf.ClientConfiguration; /** @@ -86,7 +87,9 @@ static BookKeeperBuilder newBuilder(final ClientConfiguration clientConfiguratio * * @return the metadata service is available. */ - CompletableFuture isDriverMetadataServiceAvailable(); + default CompletableFuture isDriverMetadataServiceAvailable() { + return FutureUtils.value(true); + } /** * Close the client and release every resource.