You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Gábor Gyimesi (Jira)" <ji...@apache.org> on 2022/03/25 08:36:00 UTC

[jira] [Created] (MINIFICPP-1784) Restart agent after C2 property update

Gábor Gyimesi created MINIFICPP-1784:
----------------------------------------

             Summary: Restart agent after C2 property update
                 Key: MINIFICPP-1784
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-1784
             Project: Apache NiFi MiNiFi C++
          Issue Type: New Feature
            Reporter: Gábor Gyimesi


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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)