You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Joe Witt (Jira)" <ji...@apache.org> on 2023/03/30 16:19:00 UTC

[jira] [Commented] (NIFI-11364) GetHDFSTest failures due to source archive putting future modification times on all files including test resources

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

Joe Witt commented on NIFI-11364:
---------------------------------

Verified that GetHDFS is working correctly.  The default min age is 0 and the age reported on these test files is in the future therefore it is less than the minimum age (0) and being skipped as it should.  The solution is to touch these resources (workaround) or find how to fix the source archive modification date issue (unclear from googling but others have seen similar).

> GetHDFSTest failures due to source archive putting future modification times on all files including test resources
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-11364
>                 URL: https://issues.apache.org/jira/browse/NIFI-11364
>             Project: Apache NiFi
>          Issue Type: Bug
>         Environment: Apache Maven 3.9.0 (9b58d2bad23a66be161c4664ef21ce219c2c8584)
> Java version: 1.8.0_362, vendor: Azul Systems, Inc., runtime: /usr/lib/jvm/zulu8.68.0.21-ca-jdk8.0.362-linux_x64/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "6.2.7-200.fc37.x86_64", arch: "amd64", family: "unix"
>            Reporter: Joe Witt
>            Priority: Major
>
> ERROR] Failures:
> [ERROR]   GetHDFSTest.testAutomaticDecompression:179 expected: <1> but was: <0>
> [ERROR]   GetHDFSTest.testDirectoryUsesValidEL:236 expected: <1> but was: <0>
> [ERROR]   GetHDFSTest.testFileExtensionNotACompressionCodec:217 expected: <1> but was: <0>
> [ERROR]   GetHDFSTest.testGetFilesWithFilter:151 expected: <4> but was: <0>
> [ERROR]   GetHDFSTest.testInferCompressionCodecDisabled:198 expected: <1> but was: <0>
> [INFO]
> [ERROR] Tests run: 155, Failures: 5, Errors: 0, Skipped: 0
> These tests must depend on timestamps or somethinga bout files/file systems that is brittle and super frustrating as other times they work just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)