nifi
nifi copied to clipboard
NIFI-13868: add pg-delete command to Nifi Toolkit
Summary
Adding pg-delete command to Nifi Toolkit. The command works the same way as deleting a process group via UI. If there are messages in PG queue, deletion will fail. I ported this change from Anetac's Nifi fork where I made it a while ago. We have been using this feature in production at Anetac for months now.
The code change to main branch is smaller than the one to support/nifi-1.x branch, because @markap14 has already added some of the functionality under NIFI-12898
Related PR for support/nifi-1.x branch: https://github.com/apache/nifi/pull/9387
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
- [x] Apache NiFi Jira issue created
Pull Request Tracking
- [x] Pull Request title starts with Apache NiFi Jira issue number, such as
NIFI-00000 - [x] Pull Request commit message starts with Apache NiFi Jira issue number, as such
NIFI-00000
Pull Request Formatting
- [x] Pull Request based on current revision of the
mainbranch - [x] Pull Request refers to a feature branch with one commit containing changes
Verification
Please indicate the verification steps performed prior to pull request creation.
Build
- [x] Build completed using
mvn clean install -P contrib-check- [x] JDK 21
Licensing
- [x] New dependencies are compatible with the Apache License 2.0 according to the License Policy
- [x] New dependencies are documented in applicable
LICENSEandNOTICEfiles
Documentation
- [x] Documentation formatting appears as expected in rendered files