[
https://issues.apache.org/jira/browse/NIFI-7195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17054427#comment-17054427
]
ASF subversion and git services commented on NIFI-7195:
-------------------------------------------------------
Commit 0f775f3a578ad855d4768619d361ff30a0f380ab in nifi's branch
refs/heads/master from Pierre Villard
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=0f775f3 ]
NIFI-7195 - Catch MongoException to route flow files to failure
This closes #4089
Signed-off-by: Mike Thomsen <[email protected]>
> 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: 20m
> 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)