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

Chandni Singh commented on APEXMALHAR-1852:
-------------------------------------------

Found the problem with the test.

There are 12 test files being created file 0 -11. 
In the file content lines that get added are f{file-num}l{line-num}, where 0 >= 
line-num < 2.
Files 0 - 9 are smaller than files 10 - 11 because the file-num in the content 
is just a single digit. This results in different number of blocks.
The test relied on a file having 5 blocks, but instead it sometimes picks a 
file of 12 blocks. 
So fix is simple- made every file have 6 blocks and modified test

There was a race condition with testRecursive(). Fixed that too.

> File Splitter Test Failing On My Machine
> ----------------------------------------
>
>                 Key: APEXMALHAR-1852
>                 URL: https://issues.apache.org/jira/browse/APEXMALHAR-1852
>             Project: Apache Apex Malhar
>          Issue Type: Bug
>            Reporter: Timothy Farkas
>            Assignee: Chandni Singh
>
> FileSplitterInputTest.testRecoveryOfPartialFile:408 New file expected:<1> but 
> was:<0>



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

Reply via email to