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

Improve validation of controller services against the required API

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.11.4
    • 1.13.0, 1.12.1
    • None
    • None

    Description

      Currently when we validate a configurable component, we find property descriptors that identify controller services, and we validate that that selected service matches the required API. This is done by checking that the bundle coordinate of the API exists in the bundle hierarchy of the implementation. Since this comparison is an exact match on bundle coordinates, it doesn't take into account for the scenario where the exact bundle dependency was missing, but there was one other bundle with the same artifact id so it was auto-selected.

      As an example, if you took the latest NiFi release of 1.11.4 and you added a controller service NAR from 1.11.3, such as nifi-dbcp-service-nar, during start up the dependency of nifi-standard-services-api-nar 1.11.3 would be missing, but nifi would auto-select the same NAR from 111.4. Later if you took a processor like ExecuteSQL and selected a DBCPService from 1.11.3, you would get a validation error saying that the processor requires the API from 1.11.4 but the service implements the API from 1.11.3.

      Attachments

        Issue Links

          Activity

            People

              bbende Bryan Bende
              bbende Bryan Bende
              Votes:
              0 Vote for this issue
              Watchers:
              3 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