-Re: Simulating ConnectionLossException and SessionExpiredException events during integration testing
Jared Cantwell 2011-06-16, 17:30
I can see about submitting an updated patch. I think we have one floating
around that we might not have submitted. We definitely don't have any time
to see this through right now though. However, we do use this approach in
our testing, so it is a valid approach.
On Thu, Jun 16, 2011 at 11:24 AM, Patrick Hunt <[EMAIL PROTECTED]> wrote:
> On Thu, Jun 16, 2011 at 6:51 AM, Jared Cantwell
> <[EMAIL PROTECTED]> wrote:
> > See https://issues.apache.org/jira/browse/ZOOKEEPER-829
> Would be great if someone could finish this one. because...
> > On Thu, Jun 16, 2011 at 1:16 AM, Ted Dunning <[EMAIL PROTECTED]>
> >> The other method which is used in the ZK test cases is to make a second
> >> connection with the same session id and then close that session. This
> >> causes the first connection to get a session expiration.
> I started seeing problems with this approach in 3.3.x release - due to
> the addition of "session moved" handling. iirc there's a timing issue
> 1) A connects
> 2) A' connects
> 3) A gets disconnected due to session moved handling
> 4) A reconnects (automatically)
> 5) A' gets disconnected
> I saw this on some tests, typically it was fine, but on some slow
> machines (esp vms) the timing was such that this occurred and caused
> the test to fail.