You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Koji Kawamura (JIRA)" <ji...@apache.org> on 2018/12/05 01:11:00 UTC

[jira] [Resolved] (NIFI-5862) MockRecordParser Has Bad Logic for failAfterN

     [ https://issues.apache.org/jira/browse/NIFI-5862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Kawamura resolved NIFI-5862.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 1.9.0

> 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)