Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

feat: optionally remove flow.xml on startup #207

Closed
wants to merge 3 commits into from
Closed

feat: optionally remove flow.xml on startup #207

wants to merge 3 commits into from

Conversation

genehynson
Copy link

@genehynson genehynson commented Mar 9, 2022

Q A
Bug fix? no
New feature? yes
API breaks? no
Deprecations? no
Related tickets #201
License Apache 2.0

What's in this PR?

This PR adds the property RemoveFlowFileOnStartup which defaults to true and matches the existing behavior. Changing this flag to false keeps the flow.xml.gz file on disk when starting the pod.

Why?

Some users do not want the flow.xml.gz file to be removed every time the pod is restarted because all flows have to be recreated. NiFi supports consuming an existing flow.xml.gz file on startup and will recreate all the persisted flows as long as the sensitive props key is the same. This is mainly to support a single node deployment. In a multi-node environment, removing the flow.xml.gz file is necessary for rolling updates to succeed. However, for users who are happy with a single node deployment and are using a PV for the flow.xml.gz file, this feature is useful.

Default behavior is unchanged from the current implementation. This new property is not required.

Checklist

  • Implementation tested
  • User guide and development docs updated (if needed)
  • Append changelog with changes

Gene Hynson added 3 commits March 9, 2022 14:03
feat: removeFlowFileOnStartup option
Signed-off-by: Gene Hynson <ghynson@influxdata.com>
Signed-off-by: Gene Hynson <ghynson@influxdata.com>
Signed-off-by: Gene Hynson <ghynson@influxdata.com>
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant