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

Rakesh R commented on ZOOKEEPER-1866:
-------------------------------------

Reference : https://builds.apache.org/job/ZooKeeper-3.4-WinVS2008_java/416/

I've done intial analysis and please see the life span of the session 
0x143b92b03330000:

+Phase#1 :+ Here it has established the connection
{code}
    [junit] 2014-01-22 08:57:20,683 [myid:] - INFO  [main:ZooKeeper@438] - 
Initiating client connection, connectString=127.0.0.1:11232 
sessionTimeout=30000 
watcher=org.apache.zookeeper.test.ClientBase$CountdownWatcher@406be93e
    [junit] 2014-01-22 08:57:20,739 [myid:] - INFO  
[main-SendThread(127.0.0.1:11232):ClientCnxn$SendThread@1228] - Session 
establishment complete on server 127.0.0.1/127.0.0.1:11232, sessionid = 
0x143b92b03330000, negotiated timeout = 30000
{code}

+Phase#2 :+ Here it shows the client is not able to get the response from the 
zk server
{code}
    [junit] 2014-01-22 08:57:20,740 [myid:] - INFO  [main:JMXEnv@113] - 
expect:0x143b92b03330000
    [junit] 2014-01-22 08:57:20,841 [myid:] - INFO  [main:JMXEnv@113] - 
expect:0x143b92b03330000
    [junit] 2014-01-22 08:57:21,437 [myid:] - INFO  
[main-SendThread(127.0.0.1:11232):ClientCnxn$SendThread@1091] - Unable to read 
additional data from server sessionid 0x143b92b03330000, likely server has 
closed socket, closing socket connection and attempting reconnect
{code}


+Phase#3 :+ Here the client is trying to renew the session 0x143b92b03330000, 
but sees an expiration.
{code}
    [junit] 2014-01-22 08:57:23,488 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11232:ZooKeeperServer@861] - Client 
attempting to renew session 0x143b92b03330000 at /127.0.0.1:56319
    [junit] 2014-01-22 08:57:23,488 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11232:ZooKeeperServer@610] - Invalid 
session 0x143b92b03330000 for client /127.0.0.1:56319, probably expired
    [junit] 2014-01-22 08:57:23,488 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11232:NIOServerCnxn@1007] - Closed socket 
connection for client /127.0.0.1:56319 which had sessionid 0x143b92b03330000
    [junit] 2014-01-22 08:57:23,489 [myid:] - INFO  
[main-SendThread(127.0.0.1:11232):ClientCnxn$SendThread@1087] - Unable to 
reconnect to ZooKeeper service, session 0x143b92b03330000 has expired, closing 
socket connection
    [junit] 2014-01-22 08:57:23,489 [myid:] - INFO  [main:JMXEnv@113] - 
expect:0x143b92b03330000
    [junit] 2014-01-22 08:57:23,489 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@509] - EventThread shut down
{code}

I think, the server has closed the session 0x143b92b03330000 and removed the 
connection. From the logs, I couldn't see more information about expiration or 
session closure that has occured in the zk server.

> 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
>             Fix For: 3.4.6
>
>
> 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