hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Lipcon (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8257) Auto-HA: TestZKFailoverControllerStress occasionally fails with Mockito error
Date Fri, 06 Apr 2012 22:16:17 GMT

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

Todd Lipcon commented on HADOOP-8257:
-------------------------------------

Jenkins won't run on this since it's on a branch. I verified by changing the test runtime
to 3 seconds and looping it. Without the patch, it failed with the mockito error after 3 or
4 minutes. I then looped with the patch for 15 minutes without a failure.
                
> Auto-HA: TestZKFailoverControllerStress occasionally fails with Mockito error
> -----------------------------------------------------------------------------
>
>                 Key: HADOOP-8257
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8257
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: auto-failover, test
>    Affects Versions: Auto Failover (HDFS-3042)
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>            Priority: Trivial
>         Attachments: hadoop-8257.txt
>
>
> Once in a while I've seen the following in TestZKFailoverControllerStress:
>  Unfinished stubbing detected here: -> at org.apache.hadoop.ha.TestZKFailoverControllerStress.testRandomHealthAndDisconnects(TestZKFailoverControllerStress.java:118)
 E.g. thenReturn() may be missing....
> This is because we set up the mock answers _after_ starting the ZKFCs. So if the ZKFC
calls the mock object while it's in the middle of the setup, this exception occurs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message