Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7195

PutMongoRecord processor incorrectly routes failure flow files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.9.2
    • 1.12.0, 1.11.4
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              pvillard Pierre Villard
              Gusarov Andrey
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h