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

Chesnay Schepler commented on FLINK-8713:
-----------------------------------------

This is probably the responsible line:
{code:java|title=FileInputFormatTest#503:}
FileBaseStatistics outDatedFakeStats = new 
FileBaseStatistics(stats.getLastModificationTime() - 1, fakeSize, 
BaseStatistics.AVG_RECORD_BYTES_UNKNOWN);
{code}

Since {{stats.getLastModificationTime}} returns the last timestamp of any file, 
{{stats.getLastModificationTime - 1}} may be the actual lastModificationTime 
for another file, and it wouldn't be detected as outdated.

> FileInputFormatTest.testGetStatisticsMultipleOneFileWithCachedVersion 
> unstable on Travis
> ----------------------------------------------------------------------------------------
>
>                 Key: FLINK-8713
>                 URL: https://issues.apache.org/jira/browse/FLINK-8713
>             Project: Flink
>          Issue Type: Bug
>          Components: Batch Connectors and Input/Output Formats, Tests
>    Affects Versions: 1.5.0
>            Reporter: Till Rohrmann
>            Assignee: Chesnay Schepler
>            Priority: Critical
>              Labels: test-stability
>             Fix For: 1.5.0
>
>
> {{FileInputFormatTest.testGetStatisticsMultipleOneFileWithCachedVersion}} 
> seems to be unstable on Travis.
>  
> https://api.travis-ci.org/v3/job/343717426/log.txt



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

Reply via email to