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

Bibin A Chundatt updated YARN-4155:
-----------------------------------
    Attachment: 0003-YARN-4155.patch

Hi [~ste...@apache.org]

Looked into the issue again seems timing issue.

{{TestLogAggregationService#numOfLogsAvailable}} is checked immediately on 
{{aggregator.doLogAggregationOutOfBand()}} call .
When logaggregation is in progress file name will be with extension *.tmp* 

{{TestLogAggregationService#numOfLogsAvailable}} 
{code}
if (filename.contains(LogAggregationUtils.TMP_FILE_SUFFIX)
          || (lastLogFile != null && filename.contains(lastLogFile)
              && sizeLimited)) {
        LOG.info("fileName :" + filename);
        LOG.info("lastLogFile :" + lastLogFile);
        return -1;
      }
{code}
Returns -1
Attaching patch based on the same.

> TestLogAggregationService.testLogAggregationServiceWithInterval failing
> -----------------------------------------------------------------------
>
>                 Key: YARN-4155
>                 URL: https://issues.apache.org/jira/browse/YARN-4155
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 3.0.0
>         Environment: Jenkins
>            Reporter: Steve Loughran
>            Assignee: Bibin A Chundatt
>            Priority: Critical
>         Attachments: 0001-YARN-4155.patch, 0001-YARN-4155.patch, 
> 0003-YARN-4155.patch
>
>
> Test failing on Jenkins: 
> {{TestLogAggregationService.testLogAggregationServiceWithInterval}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to