[
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