You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Rupert Bignall (Jira)" <ji...@apache.org> on 2020/03/04 12:04:00 UTC

[jira] [Commented] (NIFI-7195) PutMongoRecord processor incorrectly routes failure flow files

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

Rupert Bignall commented on NIFI-7195:
--------------------------------------

After looking at different options, I have created https://issues.apache.org/jira/browse/NIFI-7220 for dealing with partial failure.

> PutMongoRecord processor incorrectly routes failure flow files
> --------------------------------------------------------------
>
>                 Key: NIFI-7195
>                 URL: https://issues.apache.org/jira/browse/NIFI-7195
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.9.2
>            Reporter: Andrey
>            Assignee: Pierre Villard
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Hello!
> When I use batch processor for inserting data to Mongo, if I get some error like "write errors: [BulkWriteError
> {index=0, code=11000, message='E11000 duplicate key error collection" flow file is not routed to the failure relationship, but processor tries to repeat data process. I think it depends on this part of source code:
> *catch (SchemaNotFoundException | IOException | MalformedRecordException e)* 
> Apparently the exception is not caught:
> [https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/PutMongoRecord.java#L147]
>  I think it is not normal processor behavior.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)