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

ASF GitHub Bot commented on FLINK-2733:
---------------------------------------

GitHub user tillrohrmann opened a pull request:

    https://github.com/apache/flink/pull/2103

    [FLINK-2733] Harden ZooKeeperLeaderElectionTest

    Hardens ZooKeeperElectionTest by allowing the testing listener to return
    out-dated leader information. This can happen if the ZooKeeper connection
    was suspended and the new leader information has not been sent to the
    testing listener. In this case, the testing listener will be queried again
    to return the actual leader information.
    
    Add debug statements to ZooKeeperLeaderElectionTest.testZooKeeperReelection

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

    $ git pull https://github.com/tillrohrmann/flink 
fixZooKeeperLeaderElectionTest

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

    https://github.com/apache/flink/pull/2103.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 #2103
    
----
commit 37127ed6ad198d010c81b4c725c2dd14a8b11872
Author: Till Rohrmann <[email protected]>
Date:   2016-06-06T15:18:59Z

    [FLINK-2733] [tests] Harden ZooKeeperLeaderElectionTest
    
    Hardens ZooKeeperElectionTest by allowing the testing listener to return
    out-dated leader information. This can happen if the ZooKeeper connection
    was suspended and the new leader information has not been sent to the
    testing listener. In this case, the testing listener will be queried again
    to return the actual leader information.
    
    Add debug statements to ZooKeeperLeaderElectionTest.testZooKeeperReelection

----


> ZooKeeperLeaderElectionTest.testZooKeeperReelection fails
> ---------------------------------------------------------
>
>                 Key: FLINK-2733
>                 URL: https://issues.apache.org/jira/browse/FLINK-2733
>             Project: Flink
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>            Reporter: Robert Metzger
>            Assignee: Till Rohrmann
>              Labels: test-stability
>
> I observed a test failure in this run: 
> https://travis-ci.org/rmetzger/flink/jobs/81571914
> {code}
> testZooKeeperReelection(org.apache.flink.runtime.leaderelection.ZooKeeperLeaderElectionTest)
>   Time elapsed: 109.794 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<d6e0ee70-5192-4d44-8989-09f8425feecc> but 
> was:<null>
>       at org.junit.Assert.fail(Assert.java:88)
>       at org.junit.Assert.failNotEquals(Assert.java:743)
>       at org.junit.Assert.assertEquals(Assert.java:118)
>       at org.junit.Assert.assertEquals(Assert.java:144)
>       at 
> org.apache.flink.runtime.leaderelection.ZooKeeperLeaderElectionTest.testZooKeeperReelection(ZooKeeperLeaderElectionTest.java:171)
> Results :
> Failed tests: 
>   ZooKeeperLeaderElectionTest.testZooKeeperReelection:171 
> expected:<d6e0ee70-5192-4d44-8989-09f8425feecc> but was:<null>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to