Uploaded image for project: 'Apache NiFi MiNiFi C++'
  1. Apache NiFi MiNiFi C++
  2. MINIFICPP-308

Script objects should release underlying minifi objects within expected scope

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 0.3.0
    • None

    Description

      ExecuteScript sessions are holding onto some underlying minifi objects, such as FlowFile instances, longer than we would like. This is due to the GC implementations of the scripting environments, for example:

      https://github.com/ThePhD/sol2/issues/129

      ExecuteScript should therefore offer proxy objects (FlowFile is already proxied by ScriptFlowFile) which release any resource-intensive minifi objects as soon as conditions are met where the script should not longer use them (after onTrigger of context/session, after transfer or remove for flow files).

      Attachments

        Issue Links

          Activity

            People

              achristianson Andrew Christianson
              achristianson Andrew Christianson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: