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

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

Data for the bare/non git directory test resources which fails.  Shows 
modification time in the future compared to actual system time which aligns to 
create/access times.
{noformat}
find ./src/test/resources/testdata/ -type f -exec stat {} \;
  File: ./src/test/resources/testdata/.dotfile
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
Device: 0,37    Inode: 2562052     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/apachenifi)   Gid: ( 1000/apachenifi)
Context: unconfined_u:object_r:user_home_t:s0
Access: 2023-03-29 15:51:36.075085792 -0700
Modify: 2023-03-29 19:23:32.000000000 -0700
Change: 2023-03-29 15:08:05.715632474 -0700
 Birth: 2023-03-29 15:08:05.715632474 -0700
  File: ./src/test/resources/testdata/13545312236534130.tar
  Size: 1505280         Blocks: 2944       IO Block: 4096   regular file
Device: 0,37    Inode: 2562053     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/apachenifi)   Gid: ( 1000/apachenifi)
Context: unconfined_u:object_r:user_home_t:s0
Access: 2023-03-29 15:51:36.523081590 -0700
Modify: 2023-03-29 19:23:32.000000000 -0700
Change: 2023-03-29 15:08:05.722632402 -0700
 Birth: 2023-03-29 15:08:05.715632474 -0700
  File: ./src/test/resources/testdata/13545423550275052.zip
  Size: 1500841         Blocks: 2936       IO Block: 4096   regular file
Device: 0,37    Inode: 2562054     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/apachenifi)   Gid: ( 1000/apachenifi)
Context: unconfined_u:object_r:user_home_t:s0
Access: 2023-03-29 15:51:36.722079724 -0700
Modify: 2023-03-29 19:23:32.000000000 -0700
Change: 2023-03-29 15:08:05.729632329 -0700
 Birth: 2023-03-29 15:08:05.722632402 -0700
  File: ./src/test/resources/testdata/13545479542069498.pkg
  Size: 1500429         Blocks: 2936       IO Block: 4096   regular file
Device: 0,37    Inode: 2562055     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/apachenifi)   Gid: ( 1000/apachenifi)
Context: unconfined_u:object_r:user_home_t:s0
Access: 2023-03-29 15:51:36.739079564 -0700
Modify: 2023-03-29 19:23:32.000000000 -0700
Change: 2023-03-29 15:08:05.735632267 -0700
 Birth: 2023-03-29 15:08:05.729632329 -0700
  File: ./src/test/resources/testdata/randombytes-1
  Size: 500000          Blocks: 984        IO Block: 4096   regular file
Device: 0,37    Inode: 2562056     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/apachenifi)   Gid: ( 1000/apachenifi)
Context: unconfined_u:object_r:user_home_t:s0
Access: 2023-03-29 15:51:36.753079433 -0700
Modify: 2023-03-29 19:23:32.000000000 -0700
Change: 2023-03-29 15:08:05.737632247 -0700
 Birth: 2023-03-29 15:08:05.735632267 -0700
  File: ./src/test/resources/testdata/randombytes-1.gz
  Size: 500175          Blocks: 984        IO Block: 4096   regular file
Device: 0,37    Inode: 2562057     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/apachenifi)   Gid: ( 1000/apachenifi)
Context: unconfined_u:object_r:user_home_t:s0
Access: 2023-03-29 15:51:36.081085735 -0700
Modify: 2023-03-29 19:23:32.000000000 -0700
Change: 2023-03-29 15:08:05.740632215 -0700
 Birth: 2023-03-29 15:08:05.737632247 -0700
  File: ./src/test/resources/testdata/randombytes-2
  Size: 500000          Blocks: 984        IO Block: 4096   regular file
Device: 0,37    Inode: 2562058     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/apachenifi)   Gid: ( 1000/apachenifi)
Context: unconfined_u:object_r:user_home_t:s0
Access: 2023-03-29 15:51:36.507081740 -0700
Modify: 2023-03-29 19:23:32.000000000 -0700
Change: 2023-03-29 15:08:05.742632195 -0700
 Birth: 2023-03-29 15:08:05.740632215 -0700
  File: ./src/test/resources/testdata/randombytes-3
  Size: 500000          Blocks: 984        IO Block: 4096   regular file
Device: 0,37    Inode: 2562059     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/apachenifi)   Gid: ( 1000/apachenifi)
Context: unconfined_u:object_r:user_home_t:s0
Access: 2023-03-29 15:51:36.508081731 -0700
Modify: 2023-03-29 19:23:32.000000000 -0700
Change: 2023-03-29 15:08:05.744632174 -0700
 Birth: 2023-03-29 15:08:05.742632195 -0700
{noformat}


> GetHDFSTest several methods need to be reworked as the tests are brittle
> ------------------------------------------------------------------------
>
>                 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)

Reply via email to