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 "OrDTesters (JIRA)" <ji...@apache.org> on 2018/11/12 02:34:00 UTC

[jira] [Updated] (YARN-9009) Fix flaky test TestEntityGroupFSTimelineStore.testCleanLogs

     [ https://issues.apache.org/jira/browse/YARN-9009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

OrDTesters updated YARN-9009:
-----------------------------
    Description: 
In TestEntityGroupFSTimelineStore, testCleanLogs fails when run after testMoveToDone.

testCleanLogs fails because testMoveToDone moves a file into the same directory that testCleanLogs cleans, causing testCleanLogs to clean 3 files, instead of 2 as testCleanLogs expects.

To fix the failure of testCleanLogs, we can delete the file after the file is moved by testMoveToDone.

Pull request link: [https://github.com/apache/hadoop/pull/438]

  was:
In TestEntityGroupFSTimelineStore, testCleanLogs fails when run after testMoveToDone.

This is because testMoveToDone moves a file into the same directory that testCleanLogs cleans, causing testCleanLogs to clean 3 files, instead of 2 as it expects.

To fix this, we can delete the file after it is moved by testMoveToDone.

Pull request link: https://github.com/apache/hadoop/pull/438


> Fix flaky test TestEntityGroupFSTimelineStore.testCleanLogs
> -----------------------------------------------------------
>
>                 Key: YARN-9009
>                 URL: https://issues.apache.org/jira/browse/YARN-9009
>             Project: Hadoop YARN
>          Issue Type: Bug
>         Environment: Ubuntu 18.04
> java version "1.8.0_181"
> Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
>  
> Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T13:33:14-05:00)
>            Reporter: OrDTesters
>            Priority: Minor
>
> In TestEntityGroupFSTimelineStore, testCleanLogs fails when run after testMoveToDone.
> testCleanLogs fails because testMoveToDone moves a file into the same directory that testCleanLogs cleans, causing testCleanLogs to clean 3 files, instead of 2 as testCleanLogs expects.
> To fix the failure of testCleanLogs, we can delete the file after the file is moved by testMoveToDone.
> Pull request link: [https://github.com/apache/hadoop/pull/438]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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