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

Changes to ReportingTask name are not available to the ReportingTask

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: Core Framework, Extensions
    • Labels:
      None

      Description

      The Reporting Task name is only set on the ReportingTask itself during initialize(), which is only called the first time the ReportingTask is instantiated. This means if you change the name of the ReportingTask and restart it, The ReportingTask has its original name and the current name is inaccessible via the ConfigurationContext it is passed later. If you restart NiFi, the new name is set and stays that way.

      Rather than calling initialize() more than once, it is proposed to make the current name (and any other appropriate properties) available perhaps via ConfigurationContext which is passed to methods annotated with OnScheduled.

        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: