hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Lipcon (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-8204) TestHealthMonitor fails occasionally
Date Sat, 24 Mar 2012 01:35:26 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-8204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Todd Lipcon updated HADOOP-8204:
--------------------------------

    Attachment: hadoop-8204.txt

Attached patch is on top of HADOOP-8193 and fixes the issue.

The problem was that you can't concurrently call mocks and set up mock behavior in Mockito.
So the health monitor would occasionally call the mock proxy at the same time as the test
case was changing the behavior of the mock proxy.

The fix is to pull some of the patch for HDFS-2185 into this one: HealthMonitor now monitors
an HAServiceTarget, and the test implementation of HAServiceTarget has code to trigger different
failure scenarios. The test now passes reliably for me.
                
> TestHealthMonitor fails occasionally 
> -------------------------------------
>
>                 Key: HADOOP-8204
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8204
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Tom White
>            Assignee: Todd Lipcon
>         Attachments: hadoop-8204.txt
>
>
> See e.g. https://builds.apache.org/job/PreCommit-HADOOP-Build/756//testReport/org.apache.hadoop.ha/TestHealthMonitor/testMonitor/

--
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