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

Update ScriptedLookupService documentation about Jython issues

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.9.0
    • None
    • None

    Description

      From nifi-user:

      Short answer: Unfortunately this is not currently possible for Jython
      in NiFi 1.7.0+ because of a Jython bug [1] that never made it into a
      release.

      Longer answer: NIFI-5287 [2], released as part of NiFi 1.7.0,
      introduced a new default interface method for LookupService, in order
      to avoid breaking API compatibility for those with custom
      LookupServices. This exposes the bug in [1] for the Jython script
      engine. At a major release point (NiFi 2.0) we could refactor the NiFi
      codebase to remove the default interface method, update all internal
      implementations, and announce that the LookupService API has changed
      and thus custom implementations would have to be updated. Not sure if
      we can get away with that for minor releases or not, usually breaking
      API compatibility is a no-no except for major releases.

      [1] https://bugs.jython.org/issue2403

       

      Attachments

        Issue Links

          Activity

            People

              mike.thomsen Mike Thomsen
              mike.thomsen Mike Thomsen
              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