[
https://issues.apache.org/jira/browse/NIFI-7195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joe Witt updated NIFI-7195:
---------------------------
Fix Version/s: 1.11.4
> 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
> Fix For: 1.12.0, 1.11.4
>
> Time Spent: 0.5h
> 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)