[jira] Issue Comment Edited: (ZOOKEEPER-57) Connection times out when idle

2009-01-16 Thread Flavio Paiva Junqueira (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-57?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12664414#action_12664414
 ] 

fpj edited comment on ZOOKEEPER-57 at 1/16/09 12:44 AM:
---

It seems that what was causing this problem to one of our users was some 
networking issue, and we couldn't point out to any problem with ZooKeeper, so 
I'm closing it for now.

  was (Author: fpj):
It seems that cause of this problem to one of our users was some networking 
issue, and we couldn't point out to any problem with ZooKeeper, so I'm closing 
it for now.
  
 Connection times out when idle
 --

 Key: ZOOKEEPER-57
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-57
 Project: Zookeeper
  Issue Type: Bug
  Components: java client
Reporter: Flavio Paiva Junqueira
Assignee: Flavio Paiva Junqueira

 I have observed several connection timeouts with one single client, during 
 periods of inactivity. From reports of other users, it seems that others are 
 observing a similar issue. 
 In my case, tickTime is 2000, and the client sets session timeout to be 
 1. Client and servers are on different sites. I suspect there is 
 something wrong with the mechanism that issues ping messages.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Issue Comment Edited: (ZOOKEEPER-57) Connection times out when idle

2008-06-28 Thread Flavio Paiva Junqueira (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-57?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12608991#action_12608991
 ] 

fpj edited comment on ZOOKEEPER-57 at 6/28/08 3:15 AM:
--

I've been able to verify that in my setup doIO() is actually called fine after 
a call to sendPing. However, it seems that in doIO(), the call to 
sockKey.isReadable() is returning false, and pings are not being received. 

Because doIO is called from SendThread.run(), the following predicate must be 
true:

 ((k.readyOps()  (SelectionKey.OP_READ | SelectionKey.OP_WRITE)) != 0)

but because sockKey.isReadable() returns false, it seems that one of the two is 
 happening:

   1- k != sockKey
   2- (k.readyOps()  SelectionKey.OP_WRITE) != 0

From the code, it doesn't look like we have 1, so it leaves us with 2. 
This is still not conclusive, so I'll keep investigating.
   

  was (Author: fpj):
I've been able to verify that in my setup doIO() is actually called fine 
after a call to sendPing. However, it seems that in doIO(), the call to 
sockKey.isReadable() is returning false, and that's why the generated pings are 
not being sent. 

Because doIO is called from SendThread.run(), the following predicate must be 
true:

 ((k.readyOps()  (SelectionKey.OP_READ | SelectionKey.OP_WRITE)) != 0)

but because sockKey.isReadable() returns false, it seems that one of the two is 
 happening:

   1- k != sockKey
   2- (k.readyOps()  SelectionKey.OP_WRITE) != 0

From the code, it doesn't look like we have 1, so it leaves us with 2. 
This is still not conclusive, so I'll keep investigating.
   
  
 Connection times out when idle
 --

 Key: ZOOKEEPER-57
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-57
 Project: Zookeeper
  Issue Type: Bug
  Components: java client
Reporter: Flavio Paiva Junqueira

 I have observed several connection timeouts with one single client, during 
 periods of inactivity. From reports of other users, it seems that others are 
 observing a similar issue. 
 In my case, tickTime is 2000, and the client sets session timeout to be 
 1. Client and servers are on different sites. I suspect there is 
 something wrong with the mechanism that issues ping messages.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.