curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnon Moscona <ar...@moscona.com>
Subject Re: Problem starting TestingServer
Date Wed, 15 Jun 2016 18:24:08 GMT
I was wrong then. Didn't check that.

On Wed, Jun 15, 2016 at 11:22 AM Jordan Zimmerman <
jordan@jordanzimmerman.com> wrote:

> ZooKeeper 3.5.x is in the release branch of Maven Central.
>
> -JZ
>
> On Jun 15, 2016, at 1:21 PM, Arnon Moscona <arnon@moscona.com> wrote:
>
> Ah. Well, I think it explains the Maven behavior though. I believe it
> would only pull production versions unless you tell it otherwise.
>
> On Wed, Jun 15, 2016 at 11:04 AM Jordan Zimmerman <
> jordan@jordanzimmerman.com> wrote:
>
>> We have two concurrent releases right now. People are using ZooKeeper 3.5
>> in production so we need to be at parity with them.
>>
>> -Jordan
>>
>> On Jun 15, 2016, at 1:02 PM, Arnon Moscona <arnon@moscona.com> wrote:
>>
>> Thanks for the quick reply.
>> Switching to Curator to 2.10.0 solved the problem with the smoke test.
>> Now I can go back to my other bugs :-)
>>
>> As for Maven: Zookeeper 3.5 is in alpha. Latest stable is 3.4.8. I would
>> think that Curator should not be released ahead of the Zookeeper dependency.
>>
>> On Wed, Jun 15, 2016 at 10:51 AM Jordan Zimmerman <
>> jordan@jordanzimmerman.com> wrote:
>>
>>> Curator 3.x is only to be used with ZooKeeper 3.5. I’m actually
>>> surprised that Maven didn’t pull in ZooKeeper 3.5 anyway.
>>>
>>> http://curator.apache.org - see the note on versions at the bottom
>>>
>>>
>>> On Jun 15, 2016, at 12:48 PM, Arnon Moscona <arnon@moscona.com> wrote:
>>>
>>> Hi!
>>>
>>> I have a problem that I cannot find any answers for. Simply starting a
>>> TestingServer no longer works. I created a simple smoke test to replicate
>>> and the problem happens exactly the same in my Fedora box as well on my
>>> Windows box.
>>>
>>> Smoke test:
>>>
>>> package net.projectmonastery.monastery.zookeeper.data;
>>>
>>> import org.apache.curator.test.TestingServer;
>>> import org.junit.Test;
>>>
>>> /**
>>>  * Created by arnon on 6/15/16.
>>>  */
>>> public class ZookeeperSmokeTest {
>>>     @Test
>>>     public void smokeTest() throws Exception {
>>>         TestingServer server = new TestingServer(true);
>>>     }
>>> }
>>>
>>> Result:
>>>
>>> *java.lang.IllegalStateException: Timed out waiting for watch removal*
>>> at
>>> org.apache.curator.test.TestingZooKeeperMain.blockUntilStarted(TestingZooKeeperMain.java:153)
>>> at
>>> org.apache.curator.test.TestingZooKeeperServer.start(TestingZooKeeperServer.java:159)
>>> at org.apache.curator.test.TestingServer.<init>(TestingServer.java:117)
>>> at org.apache.curator.test.TestingServer.<init>(TestingServer.java:100)
>>> at org.apache.curator.test.TestingServer.<init>(TestingServer.java:52)
>>> at
>>> net.projectmonastery.monastery.zookeeper.data.ZookeeperSmokeTest.smokeTest(ZookeeperSmokeTest.java:12)
>>>         at ...
>>>
>>> Dependencies:
>>>
>>> <dependency>
>>>     <groupId>org.apache.zookeeper</groupId>
>>>     <artifactId>zookeeper</artifactId>
>>>     <version>3.4.8</version>
>>> </dependency>
>>> <dependency>
>>>     <groupId>org.apache.curator</groupId>
>>>     <artifactId>curator-framework</artifactId>
>>>     <version>3.1.0</version>
>>> </dependency>
>>> <dependency>
>>>     <groupId>org.apache.curator</groupId>
>>>     <artifactId>curator-test</artifactId>
>>>     <version>3.1.0</version>
>>> </dependency>
>>> <dependency>
>>>     <groupId>org.apache.curator</groupId>
>>>     <artifactId>curator-recipes</artifactId>
>>>     <version>3.1.0</version>
>>> </dependency>
>>> <dependency>
>>>     <groupId>org.apache.curator</groupId>
>>>     <artifactId>curator-x-discovery</artifactId>
>>>     <version>3.1.0</version>
>>> </dependency>
>>>
>>> …
>>>
>>> Any ideas welcome
>>>
>>> --
>>>
>>> ----
>>>
>>> Arnon Moscona
>>> arnon@moscona.com
>>>
>>> *In God we trust, all others must bring data*
>>> *- The elements of statistical learning*
>>> (attributed by many to W. Edwars Deming, but no data supports it)
>>>
>>>
>>>
>>
>

Mime
View raw message