[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13878633#comment-13878633
 ] 

Germán Blanco commented on ZOOKEEPER-1866:
------------------------------------------

One could fix createClient so that it checks JMXEnv and if the client is not 
there, then it closes the client and tries again.
That might work, and I will prepare the patch in case anyone wants to give it a 
try.
However, it is very strange that we have at least one case in which the client 
seems to see zxid=0x1000..0003 and the server only zxid=0x0. I think it would 
be worthwhile to look at how that happened, but for that we might need e.g. 
more traces ... and if we increase the debugging level a lot of things could 
happen since we have seen that many of these issues are related with overload 
in CPU already with the current debugging level.

> ClientBase#createClient is failing frequently
> ---------------------------------------------
>
>                 Key: ZOOKEEPER-1866
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1866
>             Project: ZooKeeper
>          Issue Type: Sub-task
>          Components: tests
>    Affects Versions: 3.4.5
>            Reporter: Rakesh R
>            Assignee: Germán Blanco
>             Fix For: 3.4.6
>
>         Attachments: ZOOKEEPER-1866.patch
>
>
> Following failure pattern has been observed many times in windows build. 
> After creating the zookeeper client, the respective connection bean is not 
> available in the jmx beans and is failing the tests.
> {code}
>     [junit] 2014-01-22 08:58:22,625 [myid:] - INFO  [main:ZKTestCase$1@65] - 
> FAILED testInvalidVersion
>     [junit] junit.framework.AssertionFailedError: expected 
> [0x143b92b03330000] expected:<1> but was:<0>
>     [junit]   at junit.framework.Assert.fail(Assert.java:47)
>     [junit]   at junit.framework.Assert.failNotEquals(Assert.java:283)
>     [junit]   at junit.framework.Assert.assertEquals(Assert.java:64)
>     [junit]   at junit.framework.Assert.assertEquals(Assert.java:195)
>     [junit]   at org.apache.zookeeper.test.JMXEnv.ensureAll(JMXEnv.java:124)
>     [junit]   at 
> org.apache.zookeeper.test.ClientBase.createClient(ClientBase.java:191)
>     [junit]   at 
> org.apache.zookeeper.test.ClientBase.createClient(ClientBase.java:171)
>     [junit]   at 
> org.apache.zookeeper.test.ClientBase.createClient(ClientBase.java:156)
>     [junit]   at 
> org.apache.zookeeper.test.ClientBase.createClient(ClientBase.java:149)
>     [junit]   at 
> org.apache.zookeeper.test.MultiTransactionTest.setUp(MultiTransactionTest.java:60)
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to