Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-8713][tests] Ensure outdated mod time is smaller than minimum #5534

Closed
wants to merge 2 commits into from

Conversation

zentol
Copy link
Contributor

@zentol zentol commented Feb 20, 2018

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

@StephanEwen
Copy link
Contributor

Looks good, +1

@zentol
Copy link
Contributor Author

zentol commented Feb 21, 2018

merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants