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

Restart agent after C2 property update

    XMLWordPrintableJSON

Details

    • Epic
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.12.0
    • None

    Description

      Some properties are only applied after the MiNiFi agent is restarted, so to be more straightforward it's better to restart the agent after every C2 property update.

      To be compliant with the kubernetes use case, we should also add a script in the docker image to start the agent and restart it when it stops due to property update. For this there should be a special exit code to indicate the shutdown happened due to property update. In native Windows and Linux environments this should be taken care of by the windows service and systemd.

      This change should also pay attention to batch C2 commands, as multiple C2 commands with multiple updates could happen in a single heartbeat response. If there is a property update in a heartbeat response with multiple C2 commands, the shutdown should only happen after all C2 commands are processed.

      Attachments

        Activity

          People

            szaszm Marton Szasz
            lordgamez Gábor Gyimesi
            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 - 3h 20m
                3h 20m