Re: Ephemeral Nodes

2021-01-29 Thread Flavio Junqueira
>> like the standby to remain as leader. >> I have tried it many ways but as soon as the standby takes over and socket >> from the old active closes the ephemeral node is deleted and triggers >> leader election again. >> >> Hope this helps. >> >> Thank

Re: Ephemeral Nodes

2021-01-28 Thread Flavio Junqueira
which will >> surely remove the ephemeral node. >> Is there a way to preserve the ephemeral node and re-connect the session ? >> >> Thanks >> -Parag >> P.S: I hope I have clearly explained the problem >> >> On 1/26/21, 8:17 PM, "Flavio Junquei

Re: Ephemeral Nodes

2021-01-26 Thread Flavio Junqueira
Hi Parag, Typically, the application knows the path of the znode that it wants to check. Knowing the path, you can, for example, check the znode metadata, which includes the session id indicating the owner in the case of an ephemeral znode. -Flavio > On 26 Jan 2021, at 03:07, Dipti Mulay

Re: ZooKeeper Operator

2021-01-18 Thread Flavio Junqueira
anks for sharing! >> >> We need more support for K8s in the OS community, this is a good step >> >> Enrico >> >> Il giorno lun 18 gen 2021 alle ore 11:18 Flavio Junqueira >> ha scritto: >> >>> We've been getting questions and sometimes contribu

ZooKeeper Operator

2021-01-18 Thread Flavio Junqueira
We've been getting questions and sometimes contributions to the ZooKeeper Kubernetes Operator we originally did for Pravega, so I feel that it has been useful more broadly. Perhaps this is something that others might be interested in too, and I thought of mentioning here.

Re: [ANNOUNCE] Apache ZooKeeper 3.5.9

2021-01-18 Thread Flavio Junqueira
+1 -Flavio > On 18 Jan 2021, at 09:16, Szalay-Bekő Máté wrote: > > Thank you Norbert for driving this! :) > > Regards, > Mate > > On Fri, Jan 15, 2021 at 4:04 PM Norbert Kalmar wrote: > >> The Apache ZooKeeper team is proud to announce Apache ZooKeeper version >> 3.5.9 >> >> ZooKeeper is

[ANNOUNCE] Enrico Olivelli new ZooKeeper PMC Member

2020-01-21 Thread Flavio Junqueira
I'm pleased to announce that Enrico Olivelli recently became the newest ZooKeeper PMC member. Enrico has contributed immensely to this community; he became a ZooKeeper committer in May 2019 and now he joins the PMC. Join me in congratulating him on the achievement. Congrats, Enrico! -Flavio on

Re: quorum.cnxn.threads.size

2019-12-12 Thread Flavio Junqueira
y way i can verify its not > opening cnxn threads? > > > > On Thu, Dec 12, 2019 at 7:15 AM Flavio Junqueira wrote: > >> If it is just logging the value of the property, then it is fine because >> the property is set, but it is not used if SASL is disabled. >&

Re: quorum.cnxn.threads.size

2019-12-12 Thread Flavio Junqueira
abled but in start > up log I still see number of threads set to default 20. > > Thanks, > Ram > On Thu, Dec 12, 2019, 6:43 AM Flavio Junqueira wrote: > >> Hi Ram, >> >> Yes, this parameter is only applicable when SASL is enabled, see in >> QuorumC

Re: quorum.cnxn.threads.size

2019-12-12 Thread Flavio Junqueira
Hi Ram, Yes, this parameter is only applicable when SASL is enabled, see in QuorumCnxManager#initializeAuth how it doesn't have a chance to use the parameter when SASL is disabled. Your assessment is correct about it being based on the number of participants, excluding observers. This

Re: ZK makes apache 2019 "top 5" projects

2019-12-12 Thread Flavio Junqueira
+1, thank you all for the hard work. -Flavio > On 12 Dec 2019, at 08:36, Enrico Olivelli wrote: > > Yes, great. > > Please also note that Kafka and Lucene/Solr that are still listed in that > list are using Zookeeper :) > > > Enrico > > Il gio 12 dic 2019, 05:46 tison ha scritto: > >>

Re: Anyone running Zookeeper on ARM?

2019-12-09 Thread Flavio Junqueira
I'm not aware of anything either. -Flavio > On 9 Dec 2019, at 08:50, Enrico Olivelli wrote: > > Brian > > Il giorno sab 7 dic 2019 alle ore 00:07 Brian Lininger < > brian.linin...@veeva.com> ha scritto: > >> Hi ZooKeeper's, >> I was poking around the Release Notes for 3.4/3.5 releases and

Re: Discover LEADER from JMX

2018-05-08 Thread Flavio Junqueira
Hi Enrico, You can determine the state of a server it via 4-letter commands. Would that work for you? -Flavio > On 8 May 2018, at 09:09, Enrico Olivelli wrote: > > Hi, > is there any way to see in JMX which is the leader of a ZooKeeper cluster? > > My problem is: given

Re: zktreeutils compilation error

2018-03-18 Thread Flavio Junqueira
Hi Ram, Just so that I understand the steps you have followed. Did you follow the instructions in the README file? -Flavio > On 17 Mar 2018, at 22:59, rammohan ganapavarapu > wrote: > > Hi, > > I am getting below error when i try to compile the zktreeutils, any

Re: Zookeeper client behavior on ZK server segmentation

2018-02-20 Thread Flavio Junqueira
Hey Sergey, > My question is if there is a way to configure ZooKeeper client in such a > way that it will try to reconnect to other ZooKeeper servers when the > server it was connected to gets segmented? The connect string that you pass when creating a zookeeper handle can contain multiple

Re: Bug in WriteLock recipe

2018-02-13 Thread Flavio Junqueira
LOG.debug("Created id: " + id); >} >} > >} > > If we find the node in the children, we set id to x-$session-$sequence. If > we create the znode, id is set to $dir/x-$session-$sequence > > I believe the first case shou

Re: Bug in WriteLock recipe

2018-02-13 Thread Flavio Junqueira
if (callback != null) { > callback.lockAcquired(); > } > return Boolean.TRUE; >} >} >} > } > } > while (id == null); > > > -Original Message- > From: Flavio Junqueira [mai

Re: Bug in WriteLock recipe

2018-02-13 Thread Flavio Junqueira
Hi Kathryn, Every time that execute method is invoked, it will get children. From your description, in the case the predecessor node is deleted and stat is null, the next call will not contain that predecessor znode. Consequently, it won't happen indefinitely. Makes sense? There is actually

New PMC Member: Michael Han

2017-06-27 Thread Flavio Junqueira
I'm very happy to announce that the Apache ZooKeeper PMC has voted to invite Michael Han to join the PMC and Michael accepted. Michael has done outstanding work in the community over the recent past and we felt it was time for Michael to deepen his level of engagement by joining the PMC.

Re: Zookeeper 3.4.9 platform support for windows in production

2017-06-03 Thread Flavio Junqueira
I have used the native (C) client on windows extensively, but it is correct that we have never promised that as a community we support it. I don't know about contrib, though. I have never tried any of that on windows. -Flavio > On 02 Jun 2017, at 15:12, solr2020

Re: How to secure zookeeper?

2017-06-03 Thread Flavio Junqueira
This is not exactly what you are after, but in 3.4.10 you can whitelist specific commands, see the documentation here: https://zookeeper.apache.org/doc/r3.4.10/zookeeperAdmin.html and search for: 4lw.commands.whitelist

Re: Tickling the election ports

2017-06-03 Thread Flavio Junqueira
Hi Ben, To your points: > On 02 Jun 2017, at 23:46, Ben Sherman wrote: > > Hi all, > > Regarding my recent outages, I have a suspicion that there is some stateful > connection tracking happening between my servers that is invisible to me. > (In this case, it's across

Re: java.io.EOFException

2017-05-29 Thread Flavio Junqueira
It think it was already established that a txn log file was corrupted. I'm guessing it couldn't find a combination of snapshot + txn log file that made it load the database correctly. Which version are you using? I would have been useful to check the txn log files and snapshots before getting

Re: [ANNOUNCE] Apache ZooKeeper 3.4.10

2017-03-30 Thread Flavio Junqueira
I believe we don't support it, see this issue: https://issues.apache.org/jira/browse/ZOOKEEPER-1604 From the issue, it sounds like we didn't fix it in the 3.4 branch, perhaps we should have. -Flavio > On 30 Mar 2017, at 16:28, yakirgb

Re: are ephemeral nodes removed when client receives session expiration

2017-01-26 Thread Flavio Junqueira
se ZooKeeper does not necessarily guarantee a > consistent view of the data tree across all clients at any given time. > > On Wed, Jan 25, 2017 at 4:19 PM, Flavio Junqueira <f...@apache.org> wrote: > >> Hey Jun, >> >> The way you're phrasing the question is

Re: are ephemeral nodes removed when client receives session expiration

2017-01-25 Thread Flavio Junqueira
Hey Jun, The way you're phrasing the question is problematic. Receiving a session expiration means that a closeSession has been committed, so a quorum has seen the closeSession event. However, a minority might still think the session is up, so if you ask whether the ephemerals are still there

Re: Zookeeper in two data centers and disaster recovery

2016-12-11 Thread Flavio Junqueira
Here is one suggestion: - Put for example 3 zookeeper servers in each data center - For each data center, configure a group the following way: ``` # Data center 1 server.1=... server.2=... server.3=... # Data center 2 server.4=... server.5=... server.6=... group.1=1:2:3 group.2=4:5:6 ``` This

Re: How to determine if the node's type is PERSISTENT_SEQUENTIAL

2016-12-11 Thread Flavio Junqueira
Hi Gang, I wonder if in your scenario it would better to copy a snapshot file rather than trying to copy one znode at a time. -Flavio > On 29 Nov 2016, at 14:52, Xie wrote: > > Hello, > > > I'm developing a too to migrate the data from ZK cluster. But found that >

Re: zookeeper discnnected every minutes when i am getting bulk data

2016-12-02 Thread Flavio Junqueira
If I understand this right, it is Kafka that is using ZooKeeper, not your application directly. The log excerpt you sent is from a Kafka broker. You may want to inspect the server logs to determine if the ensemble is healthy. -Flavio > On 02 Dec 2016, at 06:41, AjeetSingh

Re: Messages intermittently get lost

2016-11-30 Thread Flavio Junqueira
Hey Martin, Do you want to create a jira for this and report the issue? -Flavio > On 30 Nov 2016, at 18:33, Martin Gainty wrote: > > a shock when a zk script goes fubar > > > zookeeper devs can we get some help for sh zkServer.sh status? > > > Thanks! > > Martin >

Re: four letter commands not working as expected.

2016-11-29 Thread Flavio Junqueira
It looks like the server is in the LOOKING state, so it is not serving request but it is up. I'd say that ruok should return imok as long as the server is up, it's not necessarily a health check. We could review the semantics of the commands if this behavior and others are confusing. -Flavio

Re: 3.4.5 to 3.4.9 rolling update

2016-10-24 Thread Flavio Junqueira
I believe it is only in the case you're moving to the 3.5 branch, which you aren't in your example. -Flavio > On 24 Oct 2016, at 18:24, Vazhenin, Maksim wrote: > > Hi, > > Is it ok to do rolling update from 3.4.5 to 3.4.9? Or it should go through > 3.4.6? > (Docs

Re: Zookeeper exception: Timeout while waiting for epoch from quorum

2016-10-24 Thread Flavio Junqueira
Hi Krzysztof, Your first message seems to indicate that a leader is being elected, but it is not being able to sync with enough followers (in your case 1 follower). I'm saying this because of this line: > at org.apache.zookeeper.server.quorum.Leader.lead(Leader.java:377) You say that the

Re: Hi

2016-10-22 Thread Flavio Junqueira
Hi Jim, Please send a message to user-subscr...@zookeeper.apache.org to subscribe. -Flavio > On 22 Oct 2016, at 18:31, Jim Brower wrote: > > Subscribe

Re: rolling upgrade with wiped disk

2016-10-21 Thread Flavio Junqueira
ant some java code that waits until a session is sync connected, and the only address in the connect string is the one of the server you're interested in. Thanks, -Flavio > > Thanks, > Maksim > > -Original Message- > From: Flavio Junqueira [mailto:f...@apache.org] > Sent:

Re: Do we have the AdminServer configuration in zookeeper-3.4.8

2016-10-21 Thread Flavio Junqueira
something in URL > format that would be great. > > > Thanks and Regards, > Preeti Bhat > > -Original Message- > From: Flavio Junqueira [mailto:f...@apache.org] > Sent: Friday, October 21, 2016 5:29 PM > To: user@zookeeper.apache.org > Subject: Re: Do w

Re: rolling upgrade with wiped disk

2016-10-21 Thread Flavio Junqueira
Hi Maksim, You have to be careful when you do this. You may end up losing quorum on txns if you wipe out the disk of a server prematurely. On your step 4, you can tell that a server is ready once clients are able to connect to it successfully. Thanks, -Flavio > On 21 Oct 2016, at 09:11,

Re: Do we have the AdminServer configuration in zookeeper-3.4.8

2016-10-21 Thread Flavio Junqueira
Hi Preeti, Yes, it is available, just use something like this: echo stat | nc 127.0.0.1 2181 replacing the command "stat" with whatever you want to execute and the address. -Flavio > On 21 Oct 2016, at 12:47, Preeti Bhat wrote: > > HI All, > > We have

Re: ZooKeeper clients does not handle new error codes properly

2016-10-04 Thread Flavio Junqueira
@apache.org] > Sent: 04 October 2016 10:27 > To: user@zookeeper.apache.org > Cc: DevZooKeeper > Subject: Re: ZooKeeper clients does not handle new error codes properly > > did we bump the protocol version when we added the new errors? the server > could do the conversion when it respo

Re: ZooKeeper clients does not handle new error codes properly

2016-10-03 Thread Flavio Junqueira
Hi Arshad, It makes sense to me. What if we convert unknown server errors to KeeperException.SystemErrorException? This is a generic error and it extends KeeperException. I don't see it as a big issue to make this change, but others may feel differently. If we do it, then we will need a

Re: subscribe user@zookeeper.apache.org

2016-10-01 Thread Flavio Junqueira
To subscribe to the user list, please send a message to user-subscr...@zookeeper.apache.org http://zookeeper.apache.org/lists.html -Flavio > On 01 Oct 2016, at 21:42, Dinoja Padmanabhan

Re: Pass the proxy settings to Zookeeper

2016-09-29 Thread Flavio Junqueira
I'm not sure what to recommend, it does look like there is something wrong with your proxy config, though. One suggestion is to try four-letter commands or the zkCli to check if you can talk to the ensemble through the proxy rather than try your application directly. -Flavio > On 29 Sep 2016,

Re: ZooKeeper Sync API path parameter does not have any impact.

2016-09-07 Thread Flavio Junqueira
The path parameter helps the app determine the path that the response is referring to. A sync call is typically associated to a read request to a given path, so the path in the sync call helps the application make the association to that path. -Flavio > On 07 Sep 2016, at 11:35, Mohammad

Re: [ANNOUNCE] Apache ZooKeeper 3.4.9

2016-09-04 Thread Flavio Junqueira
Great to see it out! Thanks Rakesh and community. -Flavio > On 04 Sep 2016, at 05:32, Rakesh Radhakrishnan wrote: > > The Apache ZooKeeper team is proud to announce Apache ZooKeeper version > 3.4.9. > > ZooKeeper is a high-performance coordination service for distributed >

Re: Issue with NettyServerCnxn.java

2016-09-01 Thread Flavio Junqueira
about.). On the other hand, the > NettyServerCnx.sendResponse only catches IOException, so there is a > discrepancy in terms of the behaviors of catching exception. Probably > making NettyServerCnx.sendResponse catches every exception is the solution > here? > > On Thu, Sep 1

Re: Issue with NettyServerCnxn.java

2016-09-01 Thread Flavio Junqueira
I'm not sure why you say that it is better to swallow the exception, Ben. I checked the methods that call sendResponse and they seem to be able to handle IOExceptions fine. For example, in NettyServerCnxn.process, we call close upon IOException, which is exactly the behavior you mention you

Re: Working around Leader election Listner thread death

2016-08-31 Thread Flavio Junqueira
change that they don't complete. > > -dB > > Oracle RAC Database and Clusterware Architect > > > On 8/30/2016 4:54 PM, Flavio Junqueira wrote: >> I'm not sure what you're suggesting, David. Could you be more specific, >> please? >> >> -Flavio >>

Re: Working around Leader election Listner thread death

2016-08-30 Thread Flavio Junqueira
not on a whitelist, and not having a thread > waiting indefinitely for operations from any connection. > > -dB > > > On 8/30/2016 2:46 PM, Flavio Junqueira wrote: >> I was trying to write down an analysis and I haven't been able to come up >> with anything t

Re: Working around Leader election Listner thread death

2016-08-30 Thread Flavio Junqueira
will play with things a bit more but at this point I am tending > towards a simple parallel restart of all servers.. > > Once the clusters are healthy again we will do a rolling upgrade to 3.4.8 > sometime soon. > > Thanks again, > Guy > > > On Sun, Aug 28, 2016 a

Re: a broker is already registered on path /brokers/ids/1

2016-08-30 Thread Flavio Junqueira
I think you're saying that the session isn't expiring that and the ephemeral isn't getting deleted. Or maybe the session is expiring but the ephemeral isn't being deleted? It'd be great if you could check that the broker session is expiring eventually. Since you're on the 3.5 branch, you may

Re: Working around Leader election Listner thread death

2016-08-28 Thread Flavio Junqueira
Hi Guy, We don't have a way to restart the listener thread, so you really need to bounce the server. I don't think there is a way of doing this without forcing a leader election, assuming all your servers are in this bad state. To minimize downtime, one thing you can do is to avoid bouncing

Re: How to investigate these error codes

2016-08-12 Thread Flavio Junqueira
Hi Jan, Connection loss means that the client has disconnected from the server it was connected to and it will try to connect to another server to avoid session expiration. Session expired means that your session has expired. :-) Session expiration is important because if you have ephemerals

[ANNOUNCE] Chris Nauroth joins the Apache ZooKeeper PMC

2016-08-07 Thread Flavio Junqueira
In recognition of all his contributions to the project, the Apache ZooKeeper PMC has invited Chris Nauroth to join the PMC and he has accepted. I'd like to take the opportunity to thank Chris for his contributions and commitment to the project. Thank you and congratulations for joining the PMC,

Re: ZK read-only issue

2016-08-02 Thread Flavio Junqueira
l 30, 2016 at 2:29 AM, Flavio Junqueira <f...@apache.org > <mailto:f...@apache.org>> wrote: > We don't seem to have proper documentation for a case like this with > read-only, perhaps you'd be willing to write something down so that we can > include in our documentation

Re: ZK read-only issue

2016-07-30 Thread Flavio Junqueira
;>>>> wrote: >>>>> >>>>>> I'm looking at the readonly mode code right now and it appears that >> the >>>>>> only way to set readonly mode is a global system property which means >> that >>>>>> the tests for this are onl

Re: zkCli: Show usage information on -h / --help

2016-07-29 Thread Flavio Junqueira
Thanks for the feedback, Andrew. Do you want to create a jira and report it there? It would be even better if you could propose a patch to do it the way you find best. -Flavio > On 29 Jul 2016, at 21:24, Andrew Pennebaker > wrote: > > Please don't make people

Re: ZK read-only issue

2016-07-29 Thread Flavio Junqueira
M, Benjamin Jaton <benjamin.ja...@gmail.com> > wrote: > >> I will definitely try and I'll post an update, thanks again Flavio. >> >> On Thu, Jul 28, 2016 at 4:59 PM, Flavio Junqueira <f...@apache.org> wrote: >> >>> I think you're hittin

Re: ZK read-only issue

2016-07-28 Thread Flavio Junqueira
6) >at testzkclient.TestZkReadOnlyClient.main(TestZkReadOnlyClient.java:13) > > > Does anybody else have issues with the readonly mode? > > Thanks > Benjamin > > > On Sat, Jul 16, 2016 at 7:39 PM, Benjamin Jaton <benjamin.ja...@gmail.com> > wrote: >

Re: ZK read-only issue

2016-07-13 Thread Flavio Junqueira
From the logs, it looks like the server the client is trying to connect to is behind compared to last zxid the client has seen: Refusing session request for client /10.11.12.4:49237 as it has seen zxid 0x3 our last zxid is 0x0 client must try another server I believe the behavior we

Re: unexpected server response ZRUNTIMEINCONSISTENCY

2016-07-07 Thread Flavio Junqueira
This is being discussed in ZOOKEEPER-2455, yes? -Flavio > On 06 Jul 2016, at 23:46, svk wrote: > > +1. I have also observed this. I currently deal with it by retrying the > operation when I get ZRUNTIMEINCONSISTENCY. If this is the recommended > procedure, maybe we should

Re: etcd3

2016-07-01 Thread Flavio Junqueira
Although this is a response to Jordan’s message, it isn’t targeting only Jordan. There are a few things that are important to address in this thread and I actually don’t want to focus much on the comparison to other systems. There is apparently this perception that only committers can do stuff

Re: how is zookeeper deploy at multi datacenter?

2016-06-30 Thread Flavio Junqueira
> On 30 Jun 2016, at 06:04, chen dongming wrote: > > How many ways to deploy at multi datacenter for backup? > It depends a lot on what you want to do. Is it active-passive, active-active? How many locations do you have? > From my point view: > > 1. use observer > >

Re: Gentoo emerge package for ZooKeeper?

2016-06-28 Thread Flavio Junqueira
Hi Andrew, For packaging, we have been delegating to Bigtop, see this jira for some context and let us know if that works for you: https://issues.apache.org/jira/browse/ZOOKEEPER-1604 -Flavio > On 27 Jun 2016, at 18:47, Andrew Pennebaker

Re: Regarding zookeeper performance

2016-06-23 Thread Flavio Junqueira
Hi Shetty, I'm not sure what kind of information you're after. Could you be more specific, please? -Flavio > On 23 Jun 2016, at 05:39, Sushanth Shetty wrote: > > Pls help regarding below query > -- Forwarded message -- > From: "Sushanth Shetty"

Re: Large snapshots

2016-06-21 Thread Flavio Junqueira
Hi Curtis, I suggest you use "org.apache.zookeeper.server.SnapshotFormatter" to have a look at the content of the snapshot, it should give you a hint on what has gone wrong. -Flavio > On 21 Jun 2016, at 13:30, Cantrell, Curtis wrote: > > This past week, we had a

Re: SSL between java client and zookeeper?

2016-06-20 Thread Flavio Junqueira
> Is the zookeeper API supposed to work out of the box? The only thing I did >> was add keystore and trustore values as JVM arguments to tomcat. I also >> configured them in tomcat¹s server.xml >> >> >> -- >> Vaibhav Devekar >> Dotcom-Search | Seattle

Re: FYI - Apache ZooKeeper Backup, a Treatise

2016-06-18 Thread Flavio Junqueira
ific details about the >>> kind of data that you have that necessitates a backup/restore. (If >> you're >>> not at liberty to share this, then I can understand that.) It might >>> inform if we have a motivating use case for backup/restore features >> wit

Re: SSL between java client and zookeeper?

2016-06-17 Thread Flavio Junqueira
Hi there, Which version of the client are you using? This is available only on the 3.5 branch and trunk. -Flavio > On 17 Jun 2016, at 00:29, Vaibhav Devekar wrote: > > Re-sending since I probably wasn't subscribed before. > > --- > Vaibhav Devekar > > > > On

Re: Intermittent socket closed error on Windows

2016-06-16 Thread Flavio Junqueira
Are you talking about client or server? If client, are you sure your client port is open for access? -Flavio > On 16 Jun 2016, at 14:38, J316 Services wrote: > > Hi > > I am getting this socket connection closed intermittently running on Windows > 7 and ZK

Re: FYI - Apache ZooKeeper Backup, a Treatise

2016-06-16 Thread Flavio Junqueira
Great write-up, Jordan, thanks! Whether to backup zk data or not is possibly an open topic for this community, even though we have discussed it at times. My sense has been that precisely because of the issues you mention in your post, it is typically best to have a way to recreate its data

Re: ZK data dir backup

2016-06-15 Thread Flavio Junqueira
Your description sounds right to me. In the very worst case, you can start a server with a snapshot file. You'll lose the latest txns, but will be able to restore some state. You may also want to have a look at Exhibitor: https://github.com/Netflix/exhibitor I'm not sure if it is being

Re: zookeeper deployment strategy for multi data centers

2016-06-04 Thread Flavio Junqueira
There is no black magic going on with weights or hierarchies. Whatever you do, you can't escape from the curse of the intersection, and I'm sorry for stating the obvious, but that's the key reason why masking a data center going down out of two is so hard. In general, using majorities makes it

Re: Zookeeper on Windows

2016-06-01 Thread Flavio Junqueira
es with Visual > Studio compilers. > > > On Wednesday, 1 June 2016 4:00 PM, Flavio Junqueira <f...@apache.org> wrote: > > > Yes, we do have windows users with applications in production. > > -Flavio > > > On 01 Jun 2016, at 06:16, Sanjiv Kumar Gupta

Re: Zookeeper on Windows

2016-06-01 Thread Flavio Junqueira
Yes, we do have windows users with applications in production. -Flavio > On 01 Jun 2016, at 06:16, Sanjiv Kumar Gupta > wrote: > > Hi, > This is my first post to this mailing list. I tried searching the archives > for similar answers but could not conclude

Re: sharing a post on ZAB architecture

2016-05-29 Thread Flavio Junqueira
This is great, Guy, thanks for sharing! I think it would be great to link it from the project wiki. How do others feel about it? -Flavio > On 28 May 2016, at 16:24, Guy Moshkowich wrote: > > I would like to share a post I wrote on ZAB architecture: > >

Re: garbage collector choice and tuning

2016-05-16 Thread Flavio Junqueira
I have granted you access, Guy, so you can edit the wiki now. That section in troubleshooting is pretty short and it is such an important issue that I suggest we create a page for it, but feel free to suggest a different path, I've suggested it because I get this question outside the list a

Re: regarding zookeper cluster setup replication, config issues and inconsistent state

2016-05-14 Thread Flavio Junqueira
;>> tickTime=2000 >>> # The number of ticks that the initial >>> # synchronization phase can take >>> initLimit=10 >>> # The number of ticks that can pass between >>> # sending a request and getting an acknowledgement >>> syncLimit=5 >&

Re: regarding zookeper cluster setup replication, config issues and inconsistent state

2016-05-13 Thread Flavio Junqueira
Hi there, The myid needs to contain the id for each server in the ensemble, so each server will have a distinct value in its myid file. The problem might be with you configuration file. I think you say that you have specified the servers in the config file of each server, but perhaps you want

Re: How to extend ZooKeeper data structure without breaking the backward compatibility

2016-05-11 Thread Flavio Junqueira
prohibited. If you receive this e-mail in error, please > notify the sender by > phone or email immediately and delete it! > > > -Original Message- > From: Flavio Junqueira [mailto:f...@apache.org] > Sent: 11 May 2016 18:18 > To: user@zookeeper.apache.org > Cc: d...@zooke

Re: How to extend ZooKeeper data structure without breaking the backward compatibility

2016-05-11 Thread Flavio Junqueira
information contained herein in any way (including, but not limited to, total > or partial > disclosure, reproduction, or dissemination) by persons other than the > intended > recipient(s) is prohibited. If you receive this e-mail in error, please > notify the sender by > phone

Re: How to extend ZooKeeper data structure without breaking the backward compatibility

2016-05-11 Thread Flavio Junqueira
In the past, we simply created two versions of the data structure: class CreateTxnV0 { ustring path; buffer data; vector acl; boolean ephemeral; } class CreateTxn { ustring path; buffer data; vector acl; boolean

Re: [Dev]Zookeeper Server Start up error

2016-05-04 Thread Flavio Junqueira
to test. -Flavio > On 04 May 2016, at 09:35, Pranavan Theivendiram <pranavan...@cse.mrt.ac.lk> > wrote: > > Yes. I tried. It did not work. > On May 4, 2016 1:48 PM, "Flavio Junqueira" <f...@apache.org> wrote: > >> Hello there, >> >

Re: [Dev]Zookeeper Server Start up error

2016-05-04 Thread Flavio Junqueira
Hello there, Have you tried creating the myid file manually? Does it work? -Flavio > On 04 May 2016, at 03:50, Pranavan Theivendiram > wrote: > > Hi All, > > I am getting the following error in server start up. > > *ZooKeeper JMX enabled by default* > *Using

Re: how to make a server be leader permanently

2016-05-03 Thread Flavio Junqueira
+1 > On 02 May 2016, at 23:00, Alexander Shraer wrote: > > If you're interested to work on something like that, a good starting point > could be > implementing a leader handoff API: ZOOKEEPER-2076 > > On Mon, May 2, 2016 at 4:19 AM, Flavio P JUNQUEIRA

Re: Release plan 3.5 branch

2016-04-25 Thread Flavio Junqueira
Hi Jean-Marc, Thanks for the offer to help, we really appreciate it. There are multiple ways to help. I strongly suggest you to check the list of pending issues in jira for the next 3.5 release:

Re: Zookeeper is unable to start

2016-04-21 Thread Flavio Junqueira
The ensemble is electing a leader, but from this: 2016-04-21 11:06:44,705 [myid:3] - INFO [LearnerHandler-/192.168.1.3:54214:LearnerHandler@518] - Received NEWLEADER-ACK message from 2 2016-04-21 11:07:45,832 [myid:3] - ERROR [LearnerHandler-/192.168.1.2:35258:LearnerHandler@631] - Unexpected

Re: Zookeeper mesos-master on different network

2016-04-14 Thread Flavio Junqueira
ating IP of the >> other 2 slaves in network A associated to their hostname. Actually i don't >> know if it is correct, but at least if i make a ping from the slave in >> Network B to a slave in A i obtain replies. and vice versa. >> >> 2016-04-14 15:55 GMT+02:00 Flavio Junqueir

Re: Zookeeper mesos-master on different network

2016-04-14 Thread Flavio Junqueira
Have you made sure that a slave in net B is able to telnet or ssh to the leader machine in net A? Is it possible that the client port is blocker from B to A? -Flavio > On 14 Apr 2016, at 14:09, Stefano Bianchi wrote: > > Hi all > i'm working on OpenStack and i have

Re: node 2 not rejoining cluster

2016-04-14 Thread Flavio Junqueira
; ** Add 2 more nodes to the configs and do a rolling restart > ** Could you think of any way to fix node 2 so that it rejoins the cluster. > > Would appreciate your reply. > > > > On Tue, Apr 12, 2016 at 1:33 AM, Flavio Junqueira <f...@apache.org > <mailto:f...@

Re: Code to Simulate ZooKeeper Session Expiration does not Work

2016-04-13 Thread Flavio Junqueira
Are you sure serviceZKSessionId is valid? -Flavio > On 13 Apr 2016, at 08:39, Matteo Casadei - Diennea > wrote: > > Hi everybody, > > I have an issue on testing ZooKeeper's session expiration. > > Basically, I am using the chunk of code below to make a "target" >

Re: node 2 not rejoining cluster

2016-04-12 Thread Flavio Junqueira
using? >>>>> >>>>> -Flavio >>>>> On 7 Apr 2016 21:20, "s influxdb" <elastic@gmail.com> wrote: >>>>> >>>>>> nothin on the iptables firewall . >>>>>> >>>>>> What options do i have

Re: node 2 not rejoining cluster

2016-04-07 Thread Flavio Junqueira
I only see notifications from the node to itself. It says that it is connected to 1, but it doesn't seem to be receiving the notification from 1. It also doesn't seem to be receiving the connection request from 3. Last time I've seen something like this was due to iptables rules, but if it was

Re: Zookeeper with SSL release date

2016-04-01 Thread Flavio Junqueira
To recap what the goal was when we started the conversation, we were thinking of a way to move the 3.5 branch from alpha to stable faster. One suggested option was to make it possible to disable reconfiguration due to the security concerns, which is one key reason for having the 3.5 branch in

Re: Zookeeper with SSL release date

2016-03-31 Thread Flavio Junqueira
be consensus on this, I can add this flag, >>>> unless >>>>>>>>> someone else wants to. I assume that getConfig should still >> work >>>>>>>> regardless >>>>>>>>> of the flag ? is there a secu

Re: Is it a accepted practice to share Zookeeper ensemble among Kafka, Storm and Solr

2016-03-30 Thread Flavio Junqueira
Yep, I agree, better use chroot for all applications. -Flavio > On 30 Mar 2016, at 15:37, Shawn Heisey <apa...@elyograg.org> wrote: > > On 3/30/2016 12:08 AM, Flavio Junqueira wrote: >> Sharing is definitely ok, and I'd say that is common practice, but it really &

Re: Is it a accepted practice to share Zookeeper ensemble among Kafka, Storm and Solr

2016-03-30 Thread Flavio Junqueira
Sharing is definitely ok, and I'd say that is common practice, but it really depends on the size of the cluster you're talking about and your workload. Storm can be quite demanding on ZK, and Kafka typically isn't except during fail-over. I don't have experience with the workload of Solr. If

Re: Question about Sync operation

2016-03-24 Thread Flavio Junqueira
Hi Allan, Operations are pipelined and processed in order by the leader, so when the sync is queued behind the previous operations, we have that the responses to the previous updates will be flushed to the follower before the response to the sync. There is actually some degree of concurrency

Re: Unusual exception

2016-03-23 Thread Flavio Junqueira
Hi Vineet, You probably meant to send this message to the Kafka list, no? -Flavio > On 23 Mar 2016, at 06:33, vineet.salian wrote: > > Hi Avinash, > I am facing the same problem. > I am unable to detect the source of the problem as the producer program is > working

Re: Zookeeper with SSL release date

2016-03-20 Thread Flavio Junqueira
be it is ok. The > default for re-config support will be enabled or disabled?. > > I am just thinking from provisioning point of view when people generate > config options etc. > > Thanks > Powell. > > > > On Thursday, March 17, 2016 12:12 AM, Flavio Junqueira

Re: Dealing with old delivered requests in memory

2016-03-19 Thread Flavio Junqueira
ut data in log or snapshoot. I am asking > about the current data in memory. > > On Fri, Mar 18, 2016 at 4:12 PM, Flavio Junqueira <f...@apache.org> wrote: > >> Hi Ibrahim, >> >> Are you asking about how we compact old logs? We do it by taking snapshots >&

  1   2   3   4   >