[
https://issues.apache.org/jira/browse/NIFI-5862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16709481#comment-16709481
]
ASF GitHub Bot commented on NIFI-5862:
--------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/nifi/pull/3195
> MockRecordParser Has Bad Logic for failAfterN
> ---------------------------------------------
>
> Key: NIFI-5862
> URL: https://issues.apache.org/jira/browse/NIFI-5862
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Peter Wicks
> Assignee: Peter Wicks
> Priority: Minor
> Fix For: 1.9.0
>
>
> `MockRecordParser` has a function that allows it to throw an exception after
> a certain number of records have been read. This feature is not working at
> all, and instead the reader fails immediately without reading any records.
> None of the test cases check for how many records were read, so you can only
> see this in the console, for example on `TestSplitRecord.testReadFailure`:
> As Is: `Intentional Unit Test Exception because 0 records have been read`
> As Should Be: `Intentional Unit Test Exception because 2 records have been
> read`
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)