On 04/07/2010 01:51 PM, Vishal K wrote:
Thanks for your response. Currently I am running ZK without cygwin on
windows. I will give it a try on cygwin. I am not quite familiar with
cppunit. Why will cppinit give me more confidence in native windows
I have few more questions relevant to testing:
1. How much code coverage do we get with "test-core-java"? I see 68.8%
coverage on hudson
this measure the coverage from junit tests run from "test-core-java"?
Right, afaik that's test-core-java.
I think if you plan to run in production under windows you would want to
run in win, not cygwin. If that's the case you'd have to port the c
client and c client tests to some windows specific compiler.
2. What would be a good and reliable set of tests that will help me verify
that the cluster holding up fine on windows. I tried to run systest and
generateload. But I am having issues with the tests (and also understanding
the output of the tests since I am not familiar with the source). The
systest did exit with output something ilke Test OK (1). I presume this is a
good sign :-) generateLoad crashed and I will look into it later. Please let
me know if you have any suggestions. Last few lines are shown below:
Well the best thing would be to run one's own tests for their specific
use cases. Short of that you've done the core set of tests that we have
available to us. You might try the smoke/latency tests:
in particular you can run the latency tests from a number of clients in
parallel and see the results.
2010-04-07 14:44:20,055 - WARN [QuorumPeer:/0.0.0.0:3155:quorump...@662] -
QuorumPeer main thread exited
Got rc = -4
Got rc = -4
[many such messages as above]
WatchedEvent state:Disconnected type:None path:null
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at java.lang.Object.wait(Native Method)
2010-04-07 14:44:20,711 - INFO
[Thread-42-SendThread(vkher-devd:3155):clientcnxn$sendthr...@1000] - Opening
socket connection to server<host>/<IP>:48214
Got rc = -4
2010-04-07 14:44:22,008 - INFO [Thread-42:zookee...@538] -
On Wed, Apr 7, 2010 at 3:55 PM, Mahadev Konar<maha...@yahoo-inc.com> wrote:
I would be a good think to actually get cppunit working on windows (rather
than dropping it) since it would make you more confident on being able to
use the native libraries for windows.
Though there is already an open jira to try and compile librarires without
CPPIUNIT being installed on the machines.
Would you want to try and take a shot at fixing the cppunit tests?
Would be great to have cppunit tests working on cygwin!
On 4/6/10 4:15 PM, "Vishal K"<vishalm...@gmail.com> wrote:
I had few minor problems (
https://issues.apache.org/jira/browse/ZOOKEEPER-734) after which all
passed (I ran ant test-java-core).
But the build failed later in create-cppunit-configure:
[mkdir] Created dir:
C:\zookeeper\zookeeper-3.3.0\build.xml:907: The following error occurred
while executing this line:
C:\zookeeper\zookeeper-3.3.0\build.xml:865: The following error occurred
while executing this line:
C:\zookeeper\zookeeper-3.3.0\build.xml:857: Execute failed:
java.io.IOException: Cannot run program
"C:\zookeeper\zookeeper-3.3.0\src\c\configure" (in directory
error=193, %1 is not a valid Win32 application
cppunit tests should be probably dropped for windows.
Also, one point to note the dataDir in zoo.cfg should have UNIX path (or
double backslash instead of single backslash). I suppose all Java
might be already aware of that.
On Fri, Apr 2, 2010 at 1:46 PM, Patrick Hunt<ph...@apache.org> wrote:
Pretty seamless, just do a rolling upgrade (see the faq) of the servers.
Then upgrade your clients. Code APIs on the client are all b/w compat.
On 04/02/2010 10:41 AM, Vishal K wrote:
We have not upgraded to 3.3.0 yet. We are using 3.2.2. I did notice the
windows specific batch files in 3.3.0. How seemless is upgrade from
I will let you know if I run into any windows related problems. Thanks.
On Fri, Apr 2, 2010 at 11:40 AM, Patrick Hunt<ph...@apache.org>
Are you using 3.3.0? 3.3.0 included a number of fixes for cygwin and
includes windows specific batch files. If you are planning to deploy
production on windows I'd encourage you to develop under windows
If you find issues, bugs, etc... be sure to enter JIRAs. Don't worry,
won't hurt our feelings, on the contrary we'll be happy if you
issues on windows and make things better for everyone. (just make sure
are using the latest release).
On 04/02/2010 07:05 AM, Vishal K wrote:
I was able to start zookeeper on windows using cygwin. I had to do
changes to the shell scripts to use cygpath wherever needed.
I will run a few tests and post the progress. I greped through the
sources just to check if ZK is using any native code.
I didn't find any, but just to confirm - is ZK using native code.
I have talked to a few guys around and they said it is fair to assume
the programs are portable (to Windows) if they don't have native
wanted to check. Thanks.
On Thu, Apr 1, 2010 at 10:09 AM, Vishal K<vishalm...@gmail.com>
Thanks for your response. I start running ZK on windows and let you
I run into issues.
On Wed, Mar 31, 2010 at 11:32 AM, Patrick Hunt<ph...@apache.org>
Vishal K wrote:
We will be using zookeeper quite extensively for clustering.
of the platforms that we may need to support. Since Win32 is not
as a production platform I was wondering to what extent is
on windows. We are also interested on using Zookeeper on Win64
Win64 supported? Are there any plans to support Win32/Win64 for
If not, what would one need to do support windows and what would
estimated QA effort?
My use of ZK is exclusively 32/64bit linux, however I can tell you
given that the client/server are implemented in java it should
Problems you might encounter would be things like NIO issues with
implementation on windows.
Testing on windows? Pretty much 0 afaik. We do support development
cygwin, so provides some basic exercising of the codepaths with the
jvm, however it's not likely production level qa.
This question (zk on win) has come up once or twice before, I
any followup from the users who asked about it previously though.
3.3.0 has batch files for running the server in windows, give those
Probably what you'd want to do is run "ant test-core-java" or
top of the ZK release directory. This will run all the java tests
you some insight into status. I'd be happy to work with you to land
that address issues with ZK on windows. Depending on the interest
support from win users we could support win as a dev/prod platform
point in the future - having ongoing support for this would be
though (people interested in testing/fixing under win I mean). Try
exercising under windows and create some JIRAs based on what you