zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-2722) Flaky Test: org.apache.zookeeper.test.ReadOnlyModeTest.testSessionEstablishment
Date Fri, 21 Apr 2017 17:08:04 GMT

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

ASF GitHub Bot commented on ZOOKEEPER-2722:
-------------------------------------------

GitHub user hanm opened a pull request:

    https://github.com/apache/zookeeper/pull/235

    ZOOKEEPER-2722: fix flaky testSessionEstablishment test.

    Make sure client is connected to a quorum before issuing a write operation to avoid possible
race condition between connected to a RO server and forming a new quorum.
    
    Cherry picked from commit 212201131f8eb01dd2209deb37656ccc4096de77 with a tweak to make
it work with branch-3.4.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/hanm/zookeeper ZOOKEEPER-2722

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zookeeper/pull/235.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #235
    
----
commit 4c2e3e85394803af09be90a6e2aada365f0209b3
Author: Michael Han <hanm@apache.org>
Date:   2017-04-17T23:37:19Z

    ZOOKEEPER-2722: fix flaky testSessionEstablishment test.
    
    Make sure client is connected to a quorum before issuing a write operation to avoid possible
race condition between connected to a RO server and forming a new quorum.
    
    Author: Michael Han <hanm@apache.org>
    
    Reviewers: Rakesh Radhakrishnan <rakeshr@apache.org>, Camille Fournier <camille@apache.org>
    
    (cherry picked from commit 212201131f8eb01dd2209deb37656ccc4096de77)
    Signed-off-by: Michael Han <hanm@apache.org>

----


> Flaky Test: org.apache.zookeeper.test.ReadOnlyModeTest.testSessionEstablishment
> -------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2722
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2722
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: tests
>            Reporter: Michael Han
>            Assignee: Michael Han
>              Labels: flaky
>             Fix For: 3.5.4, 3.6.0
>
>
> {noformat}
> Error Message
> KeeperErrorCode = ConnectionLoss for /test
> Stacktrace
> org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss
for /test
> 	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
> 	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> 	at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:1423)
> 	at org.apache.zookeeper.test.ReadOnlyModeTest.testSessionEstablishment(ReadOnlyModeTest.java:238)
> 	at org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:79)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	at java.lang.Thread.run(Thread.java:745)
> {noformat}
> Looks like we should retry before giving up.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message