You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Guangming Zhang (JIRA)" <ji...@apache.org> on 2017/11/29 02:18:00 UTC

[jira] [Created] (YARN-7578) Extend TestDiskFailures.waitForDiskHealthCheck() sleeping time.

Guangming Zhang created YARN-7578:
-------------------------------------

             Summary: Extend TestDiskFailures.waitForDiskHealthCheck() sleeping time.
                 Key: YARN-7578
                 URL: https://issues.apache.org/jira/browse/YARN-7578
             Project: Hadoop YARN
          Issue Type: Test
    Affects Versions: 3.1.0
         Environment: ARMv8 AArch64, Ubuntu16.04
            Reporter: Guangming Zhang
            Priority: Minor
             Fix For: 3.1.0


Thread.sleep() function is called to wait for NodeManager to identify disk failures. But in some cases, for example the lower-end hardware computer, the sleep time is too short so that the NodeManager may haven't finished identifying disk failures. This will occur test errors:

{code:java}
	Running org.apache.hadoop.yarn.server.TestDiskFailures
	Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 17.686 sec <<< FAILURE! - in org.apache.hadoop.yarn.server.TestDiskFailures
	testLocalDirsFailures(org.apache.hadoop.yarn.server.TestDiskFailures)  Time elapsed: 10.412 sec  <<< FAILURE!
	java.lang.AssertionError: NodeManager could not identify disk failure.
			at org.junit.Assert.fail(Assert.java:88)
			at org.junit.Assert.assertTrue(Assert.java:41)
			at org.apache.hadoop.yarn.server.TestDiskFailures.verifyDisksHealth(TestDiskFailures.java:239)
			at org.apache.hadoop.yarn.server.TestDiskFailures.testDirsFailures(TestDiskFailures.java:186)
			at org.apache.hadoop.yarn.server.TestDiskFailures.testLocalDirsFailures(TestDiskFailures.java:99)

	testLogDirsFailures(org.apache.hadoop.yarn.server.TestDiskFailures)  Time elapsed: 5.99 sec  <<< FAILURE!
	java.lang.AssertionError: NodeManager could not identify disk failure.
			at org.junit.Assert.fail(Assert.java:88)
			at org.junit.Assert.assertTrue(Assert.java:41)
			at org.apache.hadoop.yarn.server.TestDiskFailures.verifyDisksHealth(TestDiskFailures.java:239)
			at org.apache.hadoop.yarn.server.TestDiskFailures.testDirsFailures(TestDiskFailures.java:186)
			at org.apache.hadoop.yarn.server.TestDiskFailures.testLogDirsFailures(TestDiskFailures.java:111)

{code}

 So extend the sleep time from 1000ms to 1500ms to avoid some unit test errors.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org