Re: c client on win32

2009-11-24 Thread Maarten Koopmans
Yes, I am on Win7 64 bit - weird stuff. I'll try to dig into it, but I am using zkfuse now as well. That is a much shorter route (even shorter and much faster than REST). I joined zookeeper-dev. Regards, Maarten Patrick Hunt schreef: I'm on g++ 3.4.4 with XP and it's fine. That's unusual. Is

Re: c client on win32

2009-11-24 Thread Patrick Hunt
I'm on g++ 3.4.4 with XP and it's fine. That's unusual. Is cygwin officially supported on win7? 32 or 64bit? (i'm 32bit) (ps. let's move followups to zookeeper-dev and off the user list) Regards, Patrick Maarten Koopmans wrote: Hm, seems like my cygwin on Win7 fails me. I get a crash on check

Re: c client on win32

2009-11-24 Thread Patrick Hunt
You need to have cppunit installed, might that be it? Maarten Koopmans wrote: I applied the patch to the trunk, but somehow autoconf fails on the fresh checkout (or my brain fails me, more likely ;-) What do you do on checkout to get a build of the trunk? --Maarten Patrick Hunt schreef: I h

Re: c client on win32

2009-11-24 Thread Maarten Koopmans
Hm, seems like my cygwin on Win7 fails me. I get a crash on checking the static flag for g++ in configure in 3.2.1 Weird. Maarten Koopmans schreef: I applied the patch to the trunk, but somehow autoconf fails on the fresh checkout (or my brain fails me, more likely ;-) What do you do on che

Re: c client on win32

2009-11-24 Thread Maarten Koopmans
I applied the patch to the trunk, but somehow autoconf fails on the fresh checkout (or my brain fails me, more likely ;-) What do you do on checkout to get a build of the trunk? --Maarten Patrick Hunt schreef: I have 1.5 installed. 1.7 is not official yet afaict (anyway, we probably want to

Re: c client on win32

2009-11-23 Thread Patrick Hunt
I have 1.5 installed. 1.7 is not official yet afaict (anyway, we probably want to continue to support 1.5, I suspect that if 1.5 works it should continue to work in 1.7... but would be nice to find out at some point) Patrick maar...@vrijheid wrote: Cygwin 1.5 or 1.7? I'll cross test tomorrow

Re: c client on win32

2009-11-23 Thread maar...@vrijheid
Cygwin 1.5 or 1.7? I'll cross test tomorrow. --Maarten Op 23 nov 2009 om 18:38 heeft Patrick Hunt het volgende geschreven:\ fyi, this patch allows compilation under cygwin but the tests are currently not passing (probably not handling the space in windows directory names correctly, but

Re: c client on win32

2009-11-23 Thread Patrick Hunt
fyi, this patch allows compilation under cygwin but the tests are currently not passing (probably not handling the space in windows directory names correctly, but haven't had a chance to track it down). This should go into 3.3.0 https://issues.apache.org/jira/browse/ZOOKEEPER-586 Maarten Koop

Re: Please disregard -> Re: Exception on close of connection (WAS -> Re: c client on win32)

2009-11-20 Thread stack
I think now I can explain the session expirations; hbase cilents especially up in a map/reduce task can exit without closing the zk session. Will fix. St.Ack On Fri, Nov 20, 2009 at 4:45 PM, Patrick Hunt wrote: > Yes, right, that's what I meant to say - what is causing the client to > "die", th

Re: Please disregard -> Re: Exception on close of connection (WAS -> Re: c client on win32)

2009-11-20 Thread Patrick Hunt
Yes, right, that's what I meant to say - what is causing the client to "die", throwing read error on the server side, and then later you end up with the session expiration because the client was not closed gracefully. (thanks mahadev) Patrick Mahadev Konar wrote: That should be the case sinc

Re: Please disregard -> Re: Exception on close of connection (WAS -> Re: c client on win32)

2009-11-20 Thread Mahadev Konar
That should be the case since the server gets an exception reading from the socket - meaning the client went away (not gracefully) and that leads the server to expire the session in 30 seconds. mahadev On 11/20/09 4:35 PM, "Patrick Hunt" wrote: > Oops too late. ;-) > > I'm perplexed as to why

Re: Please disregard -> Re: Exception on close of connection (WAS -> Re: c client on win32)

2009-11-20 Thread Patrick Hunt
Oops too late. ;-) I'm perplexed as to why you see all these expirations though. Are you killing your clients, ie not cleaning up the ZK session gracefully via close()? Patrick stack wrote: Please disregard. Sorry for the noise (Patrick, of note, I am seeing this session timeout on a cluste

Re: Exception on close of connection (WAS -> Re: c client on win32)

2009-11-20 Thread Patrick Hunt
stack wrote: On Fri, Nov 20, 2009 at 4:22 PM, stack wrote: Is it correct that an error at this stage throws out all connected sessions? No, it's unrelated. Notice that the 00790 only shows up once. It's a co-incidence that the other sessions are all expiring. also notice that 0x1250f26319f0

Please disregard -> Re: Exception on close of connection (WAS -> Re: c client on win32)

2009-11-20 Thread stack
Please disregard. Sorry for the noise (Patrick, of note, I am seeing this session timeout on a cluster other than Zhenyus). St.Ack On Fri, Nov 20, 2009 at 4:24 PM, stack wrote: > Sorry, I had a bad subject on the below question. > St.Ack > > On Fri, Nov 20, 2009 at 4:22 PM, stack wrote: > >> Be

Exception on close of connection (WAS -> Re: c client on win32)

2009-11-20 Thread stack
Sorry, I had a bad subject on the below question. St.Ack On Fri, Nov 20, 2009 at 4:22 PM, stack wrote: > Below an excerpt from a single node zk quorum that was at heart of a small > hbase cluster. Unfortunately the log is not at DEBUG level (I've asked the > gentleman to up the log level meanti

Re: c client on win32

2009-11-20 Thread stack
Below an excerpt from a single node zk quorum that was at heart of a small hbase cluster. Unfortunately the log is not at DEBUG level (I've asked the gentleman to up the log level meantime). What it seems to be reporting is that an exception while closing a session caused it to timeout all connec

Re: c client on win32

2009-11-20 Thread Patrick Hunt
Feel free to submit for inclusion in ZK's src/contrib. Good Luck, Patrick Maarten Koopmans wrote: Good to know. I'll check on Cygwin 1.7 and switch to Linux otherwise. I want to do a quick REBOL binding (so I need to figure out the C calls that are "minimal", and preferably have no callback f

Re: c client on win32

2009-11-20 Thread Maarten Koopmans
Good to know. I'll check on Cygwin 1.7 and switch to Linux otherwise. I want to do a quick REBOL binding (so I need to figure out the C calls that are "minimal", and preferably have no callback function pointers). If I can get ZooKeeper talking via C (or via TCP, but the protocol doesn't seem t

Re: c client on win32

2009-11-20 Thread Patrick Hunt
Well I can tell you that the C API is the more heavily used API of the two (c/java) inside Yahoo, it's also the basis of the python and perl bindings. The issue here is that no one seems to have tried it on windows in quite some time. I believe Cygwin 1.7 (currently in beta) does have getaddrin

Re: c client on win32

2009-11-20 Thread Maarten Koopmans
Patrick, I'll stick to the Java API - the C API feels to much of a second class citizen. Besides, I think we might wnat to try with the beta of Cygwin first before filing it in Jira. Ultimately the goal (IMHO) should be MinGW support(?) --Maarten Patrick Hunt schreef: Maarten, I just tried

Re: c client on win32

2009-11-20 Thread Patrick Hunt
Maarten, I just tried this with cygwin and it fails for me too. It seems that cygwin does not support getaddrinfo! Please create a JIRA and I'll see what we can do. Patrick Maarten Koopmans wrote: Hi, Has anybody managed to get the c client / dll compiled on Win32, and if so, how? I did a q

c client on win32

2009-11-20 Thread Maarten Koopmans
Hi, Has anybody managed to get the c client / dll compiled on Win32, and if so, how? I did a quick pass with MunGW and Cygwin, and they failed horribly. I'd like to load the DLL to bind it to a scripting language on windows as well. Thanks, Maarten