[ https://issues.apache.org/jira/browse/MAPREDUCE-4732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13480154#comment-13480154 ]
Amir Sanjar commented on MAPREDUCE-4732: ---------------------------------------- like submit these changes to waitTillRetire() in TestJobRetire.java patch, any suggestions? private void waitTillRetire(JobID id, JobTracker jobtracker) { //wait for job to get retired int noSec = Integer.parseInt(System.getProperty("test.job.retire.timeout", "10")); <<==== added JobInProgress job = jobtracker.getJob(id); for (int i = 0; i < noSec && job != null; i++) { <==== changed UtilsForTests.waitFor(1000); job = jobtracker.getJob(id); } assertNull("Timeout - Job did not retire. Increase value of test.job.retire.timeout property, current value="+noSec, job); <=== changed } > 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