zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunnar Wagenknecht <gun...@wagenknecht.org>
Subject Running an ensemble in one JVM
Date Wed, 19 Oct 2011 06:42:37 GMT

Is it possible to run an ensemble in one JVM?

I'd like to write some unit tests for our application in order to test
the robustness of my application regarding connection loss, connection
recovery and session expiration with an ensemble setup.

I did start several quorum peers in the same JVM but I noticed some
strange warning messages in the console. Thus, I'm wondering if that
scenario is possible at all. I haven't look at the code yet in detail if
there are some static references which would prevent that.

For now, I'm starting three separate processes. Each process opens a
command window so that I can see the process output. However, this
requires some setup for running the tests and there are a few other
issues. Thus, I'm looking for alternatives.

How do you write tests with an ensemble?


Gunnar Wagenknecht

View raw message