GitHub user zentol opened a pull request: https://github.com/apache/flink/pull/5534
[FLINK-8713][tests] Ensure outdated mod time is smaller than minimum This PR fixes a test instability in `FileInputFormatTest`. 2 tests were creating an outdated `BaseFileStatistics` by using the `#lastModificationTime` of a previously created `BaseFileStatistics` and decrementing it. Since these tests were using multiple files this timestamp was only guaranteed to be lower than the last modified file, as `#lastModificationTime` returns the max timestamp across all files. We now separately calculate the minimum timestamp and decrement that instead, as this is guaranteed to be lower than the the modification time of any file. /cc @fhueske You can merge this pull request into a Git repository by running: $ git pull https://github.com/zentol/flink 8713 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/5534.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #5534 ---- commit 548ab9ddfec0d5797f90233530c65458d59b5bad Author: zentol <chesnay@...> Date: 2018-02-20T12:16:30Z [FLINK-8713][tests] Ensure outdated mod time is smaller than minimum ---- ---