hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir Sanjar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-4732) testcase testJobRetire fails using IBM JAVA 7
Date Thu, 18 Oct 2012 21:40:03 GMT

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

Amir Sanjar commented on MAPREDUCE-4732:
----------------------------------------

debug result: 

 private void waitTillRetire(JobID id, JobTracker jobtracker) {
    //wait for job to get retired
    JobInProgress job = jobtracker.getJob(id);
    for (int i = 0; i < 10 && job != null; i++) {
      UtilsForTests.waitFor(1000);  
      job = jobtracker.getJob(id);
    }
    assertNull("Job did not retire", job); <<===== assertion job != null

Conclusion: this is a timing issue, build and run with IBM JAVA 7, this particular jobs does
not terminate in the given maximum time of 10sec, Works with >15 sec on a TP520.
Having a hardcoded max time is not recommanded..
We are testing a patch.. will be up loaded shortly ..

  
                
> testcase testJobRetire fails using IBM JAVA 7
> ---------------------------------------------
>
>                 Key: MAPREDUCE-4732
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4732
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 1.0.3
>         Environment: RHEL 6.2 with IBM JAVA 7 on a x86_64 system
>            Reporter: Amir Sanjar
>            Priority: Minor
>
> Testcase: testJobRetire took 53.352 sec
> Testcase: testJobRetireWithUnreportedTasks took 41.173 sec
> 	FAILED
> Job did not retire
> junit.framework.AssertionFailedError: Job did not retire
> 	at org.apache.hadoop.mapred.TestJobRetire.waitTillRetire(TestJobRetire.java:130)
> 	at org.apache.hadoop.mapred.TestJobRetire.testJobRetireWithUnreportedTasks(TestJobRetire.java:229)
> Testcase: testJobRemoval took 1.073 sec

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