[
https://issues.apache.org/jira/browse/MAPREDUCE-6625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15347415#comment-15347415
]
Haibo Chen commented on MAPREDUCE-6625:
---------------------------------------
The time elapsed is measured in millseconds (Time.monotonicNow()). In the first
loop execution, max retry is set to 0, and no Thread.sleep() is executed. The
execution of CLI.getJob() can finish within a millisecond, which may cause
start=end (because of the rounding of nanoseconds to milliseconds in
Time.monotonicNow()).
> TestCLI#testGetJob fails occasionally
> -------------------------------------
>
> Key: MAPREDUCE-6625
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-6625
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: test
> Reporter: Jason Lowe
> Assignee: Haibo Chen
>
> Lately TestCLI has been failing sometimes in precommit builds:
> {noformat}
> Running org.apache.hadoop.mapreduce.tools.TestCLI
> Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.883 sec <<<
> FAILURE! - in org.apache.hadoop.mapreduce.tools.TestCLI
> testGetJob(org.apache.hadoop.mapreduce.tools.TestCLI) Time elapsed: 0.037
> sec <<< FAILURE!
> java.lang.AssertionError: null
> at org.junit.Assert.fail(Assert.java:86)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at org.junit.Assert.assertTrue(Assert.java:52)
> at
> org.apache.hadoop.mapreduce.tools.TestCLI.testGetJob(TestCLI.java:175)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]