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

NiFi Mock Process Session Does Not Preserve Attributes when Using Write

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.23.2
    • 2.0.0-M1, 1.24.0
    • Tools and Build
    • None

    Description

      The MockProcessSession behaves differently from the StandardProcessSession when it comes to altering the flowfile attributes. Some attribute modifications do not seem to take hold. This is because a couple of the write methods implemented in MockProcessSession return a modification of the flowfile passed in rather than the intended behaviour outlined in NIFI-3860 – a modification of the most recent version of the flowfile passed in. It also updates the currentVersions map with the modified version of the flowfile passed in which might not be current.

      Attachments

        Issue Links

          Activity

            People

              esecules Eric Secules
              esecules Eric Secules
              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 - 0.5h
                  0.5h