[jira] Commented: (ZOOKEEPER-84) provide a mechanism to reconnect a ZooKeeper if a client receives a SessionExpiredException

2008-08-04 Thread Benjamin Reed (JIRA)

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

Benjamin Reed commented on ZOOKEEPER-84:


I've documented why Facade is a bad idea on the wiki: 
http://wiki.apache.org/hadoop/ZooKeeper/ErrorHandling

 provide a mechanism to reconnect a ZooKeeper if a client receives a 
 SessionExpiredException
 ---

 Key: ZOOKEEPER-84
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-84
 Project: Zookeeper
  Issue Type: Improvement
  Components: java client
Reporter: james strachan
Assignee: james strachan
 Attachments: reconnect_patch.patch


 am about to attach a patch which adds a reconnect() method to easily 
 re-establish a connection if a session expires - along with a toString() 
 implementation for easier debugging

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



[jira] Commented: (ZOOKEEPER-84) provide a mechanism to reconnect a ZooKeeper if a client receives a SessionExpiredException

2008-07-24 Thread james strachan (JIRA)

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

james strachan commented on ZOOKEEPER-84:
-

BTW here is the code for 
[ZooKeeperFacade|http://svn.apache.org/viewvc/activemq/sandbox/zookeeper/zookeeper-protocols/src/main/java/org/apache/zookeeper/protocols/ZooKeeperFacade.java?view=markup]
 as I've checked in the patch for ZOOKEEPER-78 into a temporary sandbox area, 
[details 
here|https://issues.apache.org/jira/browse/ZOOKEEPER-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12616391#action_12616391]

 provide a mechanism to reconnect a ZooKeeper if a client receives a 
 SessionExpiredException
 ---

 Key: ZOOKEEPER-84
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-84
 Project: Zookeeper
  Issue Type: Improvement
  Components: java client
Reporter: james strachan
Assignee: Benjamin Reed
 Attachments: reconnect_patch.patch


 am about to attach a patch which adds a reconnect() method to easily 
 re-establish a connection if a session expires - along with a toString() 
 implementation for easier debugging

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



[jira] Commented: (ZOOKEEPER-84) provide a mechanism to reconnect a ZooKeeper if a client receives a SessionExpiredException

2008-07-23 Thread james strachan (JIRA)

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

james strachan commented on ZOOKEEPER-84:
-

I hear you :)

So an Elect Leader or Write Lock protocol has to deal with expired sessions and 
create new sessions; at some point someone has to recreate something. You can 
pass the buck and say we're not gonna allow the ZooKeeper to reconnect. Then 
say we're not allowed to have the WriteLock reconnect, then the next and next 
layer of the onion. But eventually there's gonna be something somewhere that 
recreates a session :)

For now I'll work on the assumption we're gonna have to have an object which is 
a wrapper around a ZooKeeper so that it can handle reconnections by just 
discarding one ZooKeeper instance and creating another. This object could be 
shared across Protocols (we might wanna reuse one connection with ZK to make 
multiple locks for example).


 provide a mechanism to reconnect a ZooKeeper if a client receives a 
 SessionExpiredException
 ---

 Key: ZOOKEEPER-84
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-84
 Project: Zookeeper
  Issue Type: Improvement
  Components: java client
Reporter: james strachan
Assignee: james strachan
 Attachments: reconnect_patch.patch


 am about to attach a patch which adds a reconnect() method to easily 
 re-establish a connection if a session expires - along with a toString() 
 implementation for easier debugging

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



[jira] Commented: (ZOOKEEPER-84) provide a mechanism to reconnect a ZooKeeper if a client receives a SessionExpiredException

2008-07-23 Thread james strachan (JIRA)

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

james strachan commented on ZOOKEEPER-84:
-

You can mark this issue as RESOLVED/WILL_NOT_FIX if you like now - I've 
implemented a ZooKeeperFacade to wrap up the reconnectWithNewSession() logic 
for ZOOKEEPER-78

 provide a mechanism to reconnect a ZooKeeper if a client receives a 
 SessionExpiredException
 ---

 Key: ZOOKEEPER-84
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-84
 Project: Zookeeper
  Issue Type: Improvement
  Components: java client
Reporter: james strachan
Assignee: james strachan
 Attachments: reconnect_patch.patch


 am about to attach a patch which adds a reconnect() method to easily 
 re-establish a connection if a session expires - along with a toString() 
 implementation for easier debugging

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



[jira] Commented: (ZOOKEEPER-84) provide a mechanism to reconnect a ZooKeeper if a client receives a SessionExpiredException

2008-07-23 Thread james strachan (JIRA)

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

james strachan commented on ZOOKEEPER-84:
-

If ZOOKEEPER-78 ever gets committed (hint, hint :) we can just refer folks to 
the ZooKeeperFacade if ever folks hit the SessionExpiredException

 provide a mechanism to reconnect a ZooKeeper if a client receives a 
 SessionExpiredException
 ---

 Key: ZOOKEEPER-84
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-84
 Project: Zookeeper
  Issue Type: Improvement
  Components: java client
Reporter: james strachan
Assignee: Benjamin Reed
 Attachments: reconnect_patch.patch


 am about to attach a patch which adds a reconnect() method to easily 
 re-establish a connection if a session expires - along with a toString() 
 implementation for easier debugging

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



[jira] Commented: (ZOOKEEPER-84) provide a mechanism to reconnect a ZooKeeper if a client receives a SessionExpiredException

2008-07-22 Thread Mahadev konar (JIRA)

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

Mahadev konar commented on ZOOKEEPER-84:


james,
  I do not understand where you want ot add a reconnect? Can you explain what 
this jira is about? 

 provide a mechanism to reconnect a ZooKeeper if a client receives a 
 SessionExpiredException
 ---

 Key: ZOOKEEPER-84
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-84
 Project: Zookeeper
  Issue Type: Improvement
  Components: java client
Reporter: james strachan

 am about to attach a patch which adds a reconnect() method to easily 
 re-establish a connection if a session expires - along with a toString() 
 implementation for easier debugging

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