[GitHub] zookeeper issue #353: [ZOOKEEPER-2886] Permanent session moved error in mult...

2018-07-06 Thread anmolnar
Github user anmolnar commented on the issue:

https://github.com/apache/zookeeper/pull/353
  
@breed sure, go ahead please


---


[GitHub] zookeeper issue #353: [ZOOKEEPER-2886] Permanent session moved error in mult...

2018-07-06 Thread breed
Github user breed commented on the issue:

https://github.com/apache/zookeeper/pull/353
  
ok, with two +1s i'll be committing this one.


---


[GitHub] zookeeper issue #353: [ZOOKEEPER-2886] Permanent session moved error in mult...

2018-06-28 Thread hanm
Github user hanm commented on the issue:

https://github.com/apache/zookeeper/pull/353
  
@breed it's ok to vote here and the comments are bridged over to JIRA. In 
this case, check https://issues.apache.org/jira/browse/ZOOKEEPER-2886. Note you 
need to select the "Work Log" tab instead of the default "Comments" tab to see 
comments made in github. It's a change made recently to avoid github comments 
spamming JIRA comments. See 
https://www.mail-archive.com/dev@zookeeper.apache.org/msg57662.html for the 
history.


---


[GitHub] zookeeper issue #353: [ZOOKEEPER-2886] Permanent session moved error in mult...

2018-06-28 Thread breed
Github user breed commented on the issue:

https://github.com/apache/zookeeper/pull/353
  
quick question, is it ok that the voting happens here rather than the jira? 
i thought comments would be bridged over, but that doesn't seem to be 
happening...


---


[GitHub] zookeeper issue #353: [ZOOKEEPER-2886] Permanent session moved error in mult...

2018-06-27 Thread anmolnar
Github user anmolnar commented on the issue:

https://github.com/apache/zookeeper/pull/353
  
@phunt Would you like to take a quick look?
You worked on the patch for ZOOKEEPER-710.


---


[GitHub] zookeeper issue #353: [ZOOKEEPER-2886] Permanent session moved error in mult...

2018-06-26 Thread breed
Github user breed commented on the issue:

https://github.com/apache/zookeeper/pull/353
  
+1

thanx @lvfangmin ! this looks good to me. are you okay with this @anmolnar ?


---


[GitHub] zookeeper issue #353: [ZOOKEEPER-2886] Permanent session moved error in mult...

2018-06-25 Thread lvfangmin
Github user lvfangmin commented on the issue:

https://github.com/apache/zookeeper/pull/353
  
@anmolnar thanks for reviewing, the testNoLogBeforeLeaderEstablishment was 
introduced by mistake during rebase, and for the confusion. I've fixed the 
other test to catch the issue I'm trying to reproduce by removing the 
zk.dontReconnect() statement.

Here is the problem I'm trying to address in this diff:

1. client trying to renew session A on server S1
2. S1 is slow (like full GC, or high network delay due to packet lost) on 
sending the revalidate request to leader
3. client timed out on renew session A on server S1, and tried to connect 
to S2
4. S2 is faster than S1, and it revalidated the session on leader and owns 
the session
5. S1's revalidate finally reached leader, and leader updated the owner to 
S1
6. from now on, the requests from this client will always get session moved 
error, although S2 is the right one which owns the session

The server need to close session in this case to allow the client to 
reconnect and address this corner case.

Jira ZOOKEEPER-710 solved the non multi-op cases, but if the client only 
sends multi-op it can hit this problem again, which is addressed in this diff.


---