Re: How to commit last epoch proposal in zab

2019-07-29 Thread Alexander Shraer
The commit is not actually written to the log. The log is updated before a server ACKs a proposal - and what's in the log is what matters for recovery. In your example, server1 sent a commit for p2, so it got at least one ACK from server2 or server3. Since in your example server2 has been elected,

Issue migrating from Zookeeper 3.4.14 to 3.5.5

2019-07-29 Thread Jörn Franke
Hi, I tried to migrate a lab environment from Zookeepr 3.4.14 (used for Solr) to 3.5.5 and encountered an issue. It is ZooKeeper in standalone mode (other environments have a proper ensemble). I increased jute.maxbuffer beyond the default (but not excessively) - this was working perfectly fine in

Re: Issue migrating from Zookeeper 3.4.14 to 3.5.5

2019-07-29 Thread Enrico Olivelli
Il lun 29 lug 2019, 21:50 Jörn Franke ha scritto: > Hi, > > I tried to migrate a lab environment from Zookeepr 3.4.14 (used for Solr) > to 3.5.5 and encountered an issue. It is ZooKeeper in standalone mode > (other environments have a proper ensemble). I increased jute.maxbuffer > beyond the defa

Re: Issue migrating from Zookeeper 3.4.14 to 3.5.5

2019-07-29 Thread Jörn Franke
thank you for the quick reply. They read from the same disk paths and have the same access rights (in fact the RHEL service executes them as the same specific user). On Mon, Jul 29, 2019 at 10:09 PM Enrico Olivelli wrote: > Il lun 29 lug 2019, 21:50 Jörn Franke ha scritto: > > > Hi, > > > > I t

Re: Issue migrating from Zookeeper 3.4.14 to 3.5.5

2019-07-29 Thread Jörn Franke
(of course i do not run them at the same time) On Mon, Jul 29, 2019 at 10:10 PM Jörn Franke wrote: > thank you for the quick reply. They read from the same disk paths and have > the same access rights (in fact the RHEL service executes them as the same > specific user). > > On Mon, Jul 29, 2019

Re: Issue migrating from Zookeeper 3.4.14 to 3.5.5

2019-07-29 Thread Jörn Franke
It also seems that 3.5.5 does not attempt to read all of the logfiles (I have to still confirm), but the two it reads exist, it has access and they are much more than 0 byte On Mon, Jul 29, 2019 at 10:13 PM Jörn Franke wrote: > (of course i do not run them at the same time) > > On Mon, Jul 29, 2

Re: Issue migrating from Zookeeper 3.4.14 to 3.5.5

2019-07-29 Thread Enrico Olivelli
Il lun 29 lug 2019, 22:32 Jörn Franke ha scritto: > It also seems that 3.5.5 does not attempt to read all of the logfiles (I > have to still confirm), but the two it reads exist, it has access and they > are much more than 0 byte > We should have the stackstace of the EOFException. Anyone on th

Re: Issue migrating from Zookeeper 3.4.14 to 3.5.5

2019-07-29 Thread Michael Han
>> java.io.IOException: No snapshot found, but there are log entries. Something is broken! This is expected behavior introduced in ZOOKEEPER-2325. We don't want to end up with potential inconsistent state across the ensemble when recovering from empty snapshot. To continue upgrade, just delete al

Re: Issue migrating from Zookeeper 3.4.14 to 3.5.5

2019-07-29 Thread Jörn Franke
ok, then it affects basically all standalone nodes? This is fine, despite that it means some extra work (for uncritical lab environments). I am not sure it is ZOOKEEPER-2325, but I don't know the full history behind it).The logs are fine (it works in 3.4.14 without issues, even after downgrading ba

Re: Issue migrating from Zookeeper 3.4.14 to 3.5.5

2019-07-29 Thread Michael Han
>> I just wonder why it does not find a valid snapshot. If there are local snapshot files and the files are valid, then it's a bug that server fails to load them. >> Is it because the format changed in 3.5.5 compared to 3.4.14? Not I am aware of. There are some format changes (added compression

Re: Issue migrating from Zookeeper 3.4.14 to 3.5.5

2019-07-29 Thread Jörn Franke
ok, then let me verify tomorrow if a snapshot file is indeed there. If it is missing then I wonder why it was missing. There was no crash or whatever and 3.4.14 works without issue, but of course it could have loaded them from the log files. However, then I wonder why it does not create one. On Mo

Issues with using ZooKeeper 3.5.5 together with Solr 8.2.0

2019-07-29 Thread Zheng Lin Edwin Yeo
Hi, I am using the new Solr 8.2.0 with SolrCloud and external ZooKeeper 3.5.5. However, after adding in the line under zoo.cfg *4lw.commands.whitelist=** I get the error under Cloud -> ZK Status in Solr *"Errors: - membership: Check 4lq.commands.whitelist setting in zookeeper configuration file.

Re: Issues with using ZooKeeper 3.5.5 together with Solr 8.2.0

2019-07-29 Thread Jörn Franke
Maybe the Solr mailing list should address this. > Am 30.07.2019 um 04:08 schrieb Zheng Lin Edwin Yeo : > > Hi, > > I am using the new Solr 8.2.0 with SolrCloud and external ZooKeeper 3.5.5. > > However, after adding in the line under zoo.cfg > *4lw.commands.whitelist=** > > I get the error u

Re: Issue migrating from Zookeeper 3.4.14 to 3.5.5

2019-07-29 Thread Enrico Olivelli
Il giorno lun 29 lug 2019 alle ore 23:59 Jörn Franke ha scritto: > ok, then let me verify tomorrow if a snapshot file is indeed there. If it > is missing then I wonder why it was missing. There was no crash or whatever > and 3.4.14 works without issue, but of course it could have loaded them > fr

Re: Issue migrating from Zookeeper 3.4.14 to 3.5.5

2019-07-29 Thread Jörn Franke
Thanks. It is possible to force Zookeeper to create a snapshot? I will check I think the snapshot count is set to 1 in the cfg > Am 30.07.2019 um 08:06 schrieb Enrico Olivelli : > > Il giorno lun 29 lug 2019 alle ore 23:59 Jörn Franke > ha scritto: > >> ok, then let me verify tomorrow if a sn