zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Hunt (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-3040) flaky test EphemeralNodeDeletionTest
Date Thu, 10 May 2018 22:23:00 GMT

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

Patrick Hunt commented on ZOOKEEPER-3040:
-----------------------------------------

Looks like the test code is assuming the follower is up to date, which without a sync call
might not be the case. Hence flakey. Please also verify that the zk.close is synchronous.

{noformat}
        // close the session and newly created ephemeral node should be deleted
        zk.close();

        nodeAtFollower = followerZK.exists(nodePath, false);

        // Problem 2: Before fix, after session close the ephemeral node
        // was not getting deleted. But now after the fix after session close
        // ephemeral node is getting deleted.
        assertNull("After session close ephemeral node must be deleted",
                nodeAtFollower);
{noformat}


> flaky test EphemeralNodeDeletionTest
> ------------------------------------
>
>                 Key: ZOOKEEPER-3040
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3040
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: tests
>    Affects Versions: 3.5.4, 3.6.0, 3.4.12
>            Reporter: Patrick Hunt
>            Priority: Major
>             Fix For: 3.6.0, 3.4.13, 3.5.5
>
>
> Flakey test EphemeralNodeDeletionTest
> {noformat}
> java.lang.AssertionError: After session close ephemeral node must be deleted expected
null, but was:<4294967302,4294967302,1525988536834,1525988536834,0,0,0,144127862257483776,1,0,4294967302
>  {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message