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

JythonScriptEngineConfigurator needs to recompile on init()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.14.0
    • Component/s: Extensions
    • Labels:
      None

      Description

      NIFI-8080 introduced a kind of regression in the sense that an invalid Jython script can be supplied to InvokeScriptedProcessor (or related scripting components) and it will successfully "compile". However it will generate an error every time eval() is called, and will not be recompiled if the script is changed because a CompiledScript object exists. The workaround/approach is that the script must be corrected and then NiFi must be restarted.

      The JythonScriptEngineConfigurator should recompile the script whenever init() is called, whether there is an existing CompiledScript object or not.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mattyb149 Matt Burgess
                Reporter:
                mattyb149 Matt Burgess
              • 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 - 1h 10m
                  1h 10m