You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/10/21 13:25:00 UTC

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

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

ASF GitHub Bot commented on YARN-7578:
--------------------------------------

vetriselvan1187 closed pull request #304: [YARN-7578] waitForDiskHealthCheck sleep time is extended from 1000ms…
URL: https://github.com/apache/hadoop/pull/304




> 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
>              Labels: dtest, patch, test
>         Attachments: YARN-7578.0.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> 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
(v8.20.10#820010)

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