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

Shilun Fan resolved YARN-11999.
-------------------------------
    Fix Version/s: 3.5.1
                   3.6.0
     Hadoop Flags: Reviewed
       Resolution: Fixed

> Fix race in TestLogAggregationService when checking application log directory 
> deletion
> --------------------------------------------------------------------------------------
>
>                 Key: YARN-11999
>                 URL: https://issues.apache.org/jira/browse/YARN-11999
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 3.5.1, 3.6.0
>            Reporter: Shilun Fan
>            Assignee: Shilun Fan
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 3.5.1, 3.6.0
>
>
> TestLogAggregationService.testLocalFileDeletionAfterUpload can fail because 
> verifyLocalFileDeletion() checks the application log directory before its 
> asynchronous deletion has completed.
> The helper waits for individual log files to disappear, then immediately 
> asserts that the application log directory no longer exists.
>  
> However, DeletionService schedules file and directory deletion asynchronously.
>  
> Completion of the individual file deletions does not guarantee completion of 
> the application directory deletion.
> Observed failure:
> TestLogAggregationService.testLocalFileDeletionAfterUpload -> 
> verifyLocalFileDeletion()
> Directory [...] was not deleted ==> expected: <false> but was: <true>



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to