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

Hudson commented on ZOOKEEPER-1103:
-----------------------------------

Integrated in ZooKeeper-trunk #1221 (See 
[https://builds.apache.org/job/ZooKeeper-trunk/1221/])
    Fixed a problem introduced by the first patch for ZOOKEEPER-1103 (phunt)

phunt : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1138595
Files : 
* /zookeeper/trunk/src/java/test/org/apache/zookeeper/test/QuorumTest.java


> In QuorumTest, use the same "for ( .. try { break } catch { } )" pattern in 
> testFollowersStartAfterLeaders as in testSessionMove.
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1103
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1103
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: tests
>    Affects Versions: 3.3.3, 3.4.0
>            Reporter: Eugene Koontz
>            Assignee: Eugene Koontz
>            Priority: Minor
>             Fix For: 3.3.4, 3.4.0
>
>         Attachments: ZOOKEEPER-1103.patch, ZOOKEEPER-1103_2.patch, 
> ZOOKEEPER-1103_branch_3_3.patch, ZOOKEEPER-1103_branch_3_3_try2.patch
>
>
> Patrick Hunt writes: 
> "Such uses of sleep [used in testFollowersStartAfterLeader] are just asking 
> for trouble. Take a look at the use
> of sleep in testSessionMove in the same class for a better way to do
> this. I had gone through all the tests a while back, replacing all the
> "sleep(x)" with something like this testSessionMove pattern (retry
> with a max limit that's very long). During reviews we should look for
> anti-patterns like this and address them before commit."
> So, modify testFollowersStartAfterLeaders to use the same retrying approach 
> that testSessionMove uses.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to