Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A632ED4C3 for ; Thu, 15 Nov 2012 03:00:19 +0000 (UTC) Received: (qmail 72870 invoked by uid 500); 15 Nov 2012 03:00:14 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 72746 invoked by uid 500); 15 Nov 2012 03:00:14 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 72691 invoked by uid 99); 15 Nov 2012 03:00:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2012 03:00:12 +0000 Date: Thu, 15 Nov 2012 03:00:12 +0000 (UTC) From: "sam liu (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <251226417.117484.1352948412754.JavaMail.jiratomcat@arcas> In-Reply-To: <586107969.111877.1352862612506.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (MAPREDUCE-4798) TestJobHistoryServer fails some times with 'java.lang.AssertionError: Address already in use' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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