nifi/nifi-nar-bundles/nifi-extension-utils
Koji Kawamura 28ee70222b
NIFI-4069: Make ListXXX work with timestamp precision in seconds or minutes
- Refactored variable names to better represents what those are meant for.
- Added deterministic logic which detects target filesystem timestamp precision and adjust lag time based on it.
- Changed from using System.nanoTime() to System.currentTimeMillis in test because Java File API reports timestamp in milliseconds at the best granularity. Also, System.nanoTime should not be used in mix with epoch milliseconds because it uses arbitrary origin and measured differently.
- Changed TestListFile to use more longer interval between file timestamps those are used by testFilterAge to provide more consistent test result because sleep time can be longer with filesystems whose timestamp in seconds precision.
- Added logging at TestListFile.
- Added TestWatcher to dump state in case assertion fails for further investigation.
- Added Timestamp Precision property so that user can set if auto-detect is not enough
- Adjust timestamps for ages test

This closes #1915.

Signed-off-by: Bryan Bende <bbende@apache.org>
2017-08-28 11:31:03 -04:00
..
nifi-hadoop-utils NIFI-4311 Allowing umask to get set properly before initializing the FileSystem 2017-08-22 22:40:26 +02:00
nifi-processor-utils NIFI-4069: Make ListXXX work with timestamp precision in seconds or minutes 2017-08-28 11:31:03 -04:00
nifi-record-utils NIFI-4311 Allowing umask to get set properly before initializing the FileSystem 2017-08-22 22:40:26 +02:00
pom.xml NIFI-3997: 2017-06-08 15:22:51 -04:00