You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2021/09/01 09:37:48 UTC

[GitHub] [bookkeeper] eolivelli commented on a change in pull request #2778: Ledger replicate supports throttle

eolivelli commented on a change in pull request #2778:
URL: https://github.com/apache/bookkeeper/pull/2778#discussion_r699431356



##########
File path: bookkeeper-server/src/main/java/org/apache/bookkeeper/client/BookKeeperAdmin.java
##########
@@ -154,11 +154,18 @@ public BookKeeperAdmin(String zkServers) throws IOException, InterruptedExceptio
      *             Throws this exception if there is an error instantiating the
      *             BookKeeper client.
      */
+    public BookKeeperAdmin(ClientConfiguration conf, ServerConfiguration serverConf) throws IOException, InterruptedException, BKException {
+        // Create the BookKeeper client instance
+        bkc = new BookKeeper(conf);
+        ownsBK = true;
+        this.lfr = new LedgerFragmentReplicator(bkc, NullStatsLogger.INSTANCE, serverConf);

Review comment:
       probably it is possible to build a ServerConfiguration from a ClientConfiguration




-- 
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: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org