[ https://issues.apache.org/jira/browse/NIFI-5862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16709478#comment-16709478 ]
ASF GitHub Bot commented on NIFI-5862: -------------------------------------- Github user ijokarumawak commented on the issue: https://github.com/apache/nifi/pull/3195 Thanks @patricker good catch! +1 merging to master. > 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 > > `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)