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

shijinkui commented on FLINK-5166:
----------------------------------

Debug, found that:
there four tmp file in the `expectedFiles` list, as there  are two file in 
`paths`, so when execute 
`assertTrue(expectedFiles.get(i).equals(paths.get(i)));`,  get null by the 
index.

tmp file such as: 
flink/flink-java/tmp/first/TextInputFormatTest3439492861909451525.tmp

It's strangely when i delete the tmp files, then run the test, it's ok.

I think we can clear the directory before test. I add two line code in the PR.


> TextInputFormatTest.testNestedFileRead
> --------------------------------------
>
>                 Key: FLINK-5166
>                 URL: https://issues.apache.org/jira/browse/FLINK-5166
>             Project: Flink
>          Issue Type: Bug
>          Components: Batch Connectors and Input/Output Formats, Tests
>            Reporter: shijinkui
>
> `mvn clean package -P \!scala-2.11,scala-2.11  -U`
> Failed tests:
>   TextInputFormatTest.testNestedFileRead:140 Test erroneous
> Tests run: 846, Failures: 1, Errors: 0, Skipped: 0



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to