You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by zentol <gi...@git.apache.org> on 2018/02/20 12:30:10 UTC
[GitHub] flink pull request #5534: [FLINK-8713][tests] Ensure outdated mod time is sm...
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 <ch...@...>
Date: 2018-02-20T12:16:30Z
[FLINK-8713][tests] Ensure outdated mod time is smaller than minimum
----
---
[GitHub] flink issue #5534: [FLINK-8713][tests] Ensure outdated mod time is smaller t...
Posted by StephanEwen <gi...@git.apache.org>.
Github user StephanEwen commented on the issue:
https://github.com/apache/flink/pull/5534
Looks good, +1
---
[GitHub] flink issue #5534: [FLINK-8713][tests] Ensure outdated mod time is smaller t...
Posted by zentol <gi...@git.apache.org>.
Github user zentol commented on the issue:
https://github.com/apache/flink/pull/5534
merging.
---
[GitHub] flink pull request #5534: [FLINK-8713][tests] Ensure outdated mod time is sm...
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/flink/pull/5534
---