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

Session should not copy FlowFile Attribute Map when creating new FlowFile object unless attributes are changing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • Core Framework
    • None

    Description

      Currently, each time we create a new FlowFile object, we do so using StandardFlowFileRecord.Builder and then call fromFlowFile(FlowFile). This copies the attributes map of the given FlowFile. We should instead just set the member variable of the builder to point at the same Map object as the given FlowFile and keep a flag indicating whether or not this was done. If this is done, we must lazily copy the hash map before modifying it. Otherwise, we can point to the same Map object.

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: