Re: An official API for starting ZooKeeper from a Java program

2020-07-01 Thread Jordan Zimmerman
The issue is trying to start ZooKeeper programmatically. ZooKeeperServerMain assumes starting from the CLI with zoo.cfg, etc. If you want to do all that programmatically it's more difficult. What is needed is a version of ZooKeeperServerMain for programmatic use. > On Jul 1, 2020, at 3:41 PM,

Re: An official API for starting ZooKeeper from a Java program

2020-07-01 Thread Christopher
In my experience, the current ZooKeeperServerMain is adequate for this. I currently wrap that for my (unofficial) zookeeper-maven-plugin project (https://github.com/revelc/zookeeper-maven-plugin). I'm curious what additional benefits having a new API would add that can't be done with the current

Re: An official API for starting ZooKeeper from a Java program

2020-07-01 Thread Enrico Olivelli
Il giorno gio 25 giu 2020 alle ore 22:48 Patrick Hunt ha scritto: > On Thu, Jun 25, 2020 at 1:45 PM Enrico Olivelli > wrote: > > > Il Gio 25 Giu 2020, 22:13 Patrick Hunt ha scritto: > > > > > On Thu, Jun 25, 2020 at 3:20 AM Enrico Olivelli > > > wrote: > > > > > > > Hi, > > > > we recently

Re: An official API for starting ZooKeeper from a Java program

2020-06-25 Thread Patrick Hunt
On Thu, Jun 25, 2020 at 1:45 PM Enrico Olivelli wrote: > Il Gio 25 Giu 2020, 22:13 Patrick Hunt ha scritto: > > > On Thu, Jun 25, 2020 at 3:20 AM Enrico Olivelli > > wrote: > > > > > Hi, > > > we recently got into ZOOKEEPER-3803 > FileTxnSnapLog.fastForwardFromEdits() > > > throws NPE if

Re: An official API for starting ZooKeeper from a Java program

2020-06-25 Thread Enrico Olivelli
Il Gio 25 Giu 2020, 22:13 Patrick Hunt ha scritto: > On Thu, Jun 25, 2020 at 3:20 AM Enrico Olivelli > wrote: > > > Hi, > > we recently got into ZOOKEEPER-3803 FileTxnSnapLog.fastForwardFromEdits() > > throws NPE if TestingServer is started from another thread (see [1]) > > and I have similar

Re: An official API for starting ZooKeeper from a Java program

2020-06-25 Thread Patrick Hunt
On Thu, Jun 25, 2020 at 3:20 AM Enrico Olivelli wrote: > Hi, > we recently got into ZOOKEEPER-3803 FileTxnSnapLog.fastForwardFromEdits() > throws NPE if TestingServer is started from another thread (see [1]) > and I have similar cases in other non OS products that run ZooKeeper from > Java. > >

An official API for starting ZooKeeper from a Java program

2020-06-25 Thread Enrico Olivelli
Hi, we recently got into ZOOKEEPER-3803 FileTxnSnapLog.fastForwardFromEdits() throws NPE if TestingServer is started from another thread (see [1]) and I have similar cases in other non OS products that run ZooKeeper from Java. The case of ZOOKEEPER-3803 is for Curator TestingServer, and here we