hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sam liu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MAPREDUCE-4798) TestJobHistoryServer fails some times with 'java.lang.AssertionError: Address already in use'
Date Thu, 15 Nov 2012 03:00:12 GMT

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

sam liu updated MAPREDUCE-4798:
-------------------------------

       Fix Version/s: 1.0.3
              Labels: patch  (was: )
    Target Version/s: 1.0.3
              Status: Patch Available  (was: Open)

The failures always happen in the step 'String redirectUrl = getRedirectUrl(job.getTrackingURL())'
of testHistoryServerStandalone(). In the failure case, when executing into the method getRedirectUrl(job.getTrackingURL()),
it always fails to execute 'Assert.assertEquals(status, HttpURLConnection.HTTP_MOVED_TEMP)'
because the status value now is 200, but the HttpURLConnection.HTTP_MOVED_TEMP value is 302.
In the successful cases., the status value will be 302.
If add a break(sleep 10 sec) between 'int status = client.executeMethod(method)' and 'method.setFollowRedirects(false)',
this case will be stable. I tried: 10 executions with 0 failure.
                
> TestJobHistoryServer fails some times with 'java.lang.AssertionError: Address already
in use'
> ---------------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-4798
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4798
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: jobhistoryserver, test
>    Affects Versions: 1.0.3
>         Environment: Red Hat Ent Server 6.2
>            Reporter: sam liu
>            Priority: Minor
>              Labels: patch
>             Fix For: 1.0.3
>
>         Attachments: MAPREDUCE-4798.patch
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> UT Failure in IHC 1.0.3: org.apache.hadoop.mapred.TestJobHistoryServer. This UT fails
sometimes.
> The error message is:
> 'Testcase: testHistoryServerStandalone took 5.376 sec
> 	Caused an ERROR
> Address already in use
> java.lang.AssertionError: Address already in use
> 	at org.apache.hadoop.mapred.TestJobHistoryServer.testHistoryServerStandalone(TestJobHistoryServer.java:113)'

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message