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

Issue with rollback on retry connection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.16.0, 1.17.0, 1.16.1, 1.16.2, 1.16.3, 1.18.0, 1.19.0, 1.20.0, 1.19.1, 1.21.0, 1.22.0
    • 2.0.0-M1, 1.23.0
    • Core Framework
    • None

    Description

      Consider a GenerateFlowFile -> LookupRecord flow.

      The GenerateFlowFile generates a flow file with two records.

      The LookupRecord processor is configured with matched/unmatched output relationships.

      One of the record is matching an entry in the lookup service, the other record does not match anything.

      With default configuration, the FF would be split into one flow file of one record in the matched connection and one flow file of one record in the unmatched relationship.

      This is expected behavior.

      Now, if I configure the retry mechanism (NIFI-9475) on the unmatched relationship, no flow file is going into the unmatched relationship and I have only one flow file with one record in the matched relationship. We're effectively loosing the records that didn't match anything in the lookup service.

      The expected behavior is to have all of the child flow files should be removed and the original flow file should be penalized and rolled back.

      Find attached a flow definition to easily reproduce the problem.

      Attachments

        1. Bug_Lookup.json
          11 kB
          Pierre Villard

        Issue Links

          Activity

            People

              markap14 Mark Payne
              pvillard Pierre Villard
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 40m
                  40m