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-2692) Fix race condition in testWatchAutoResetWithPending
Date Fri, 10 Feb 2017 18:14:41 GMT

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

ASF GitHub Bot commented on ZOOKEEPER-2692:

GitHub user afine opened a pull request:


    ZOOKEEPER-2692: Fix race condition in testWatchAutoResetWithPending

    We occasionally run into an issue with testWatchAutoResetWithPending where we get flaky
test behavior due to not being able to reliably predict when the client has received notification
from each watch that may be fired (perhaps due to resource contention on the box running the
tests). This patch works around that by waiting for a one second quiet period, after which
we can more safely assume all watches that will be fired have been fired.
    Here is an example of the test failure: https://builds.apache.org/job/ZooKeeper-trunk-jdk8/935/testReport/junit/org.apache.zookeeper.test/WatcherTest/testWatchAutoResetWithPending/

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

    $ git pull https://github.com/afine/zookeeper ZOOKEEPER-2692

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


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

    This closes #171
commit f2d02bbef77f85e5786345d1ec75240add0d1504
Author: Abraham Fine <abefine@cloudera.com>
Date:   2017-02-10T17:55:10Z

    ZOOKEEPER-2692: Fix race condition in testWatchAutoResetWithPending


> Fix race condition in testWatchAutoResetWithPending
> ---------------------------------------------------
>                 Key: ZOOKEEPER-2692
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2692
>             Project: ZooKeeper
>          Issue Type: Sub-task
>          Components: tests
>    Affects Versions: 3.5.3
>            Reporter: Abraham Fine
>            Assignee: Abraham Fine

This message was sent by Atlassian JIRA

View raw message