NIFI-16241 Fix PublishAMQP handling of blank Routing Key - #11578
NIFI-16241 Fix PublishAMQP handling of blank Routing Key#11578ing-mattioni wants to merge 1 commit into
Conversation
97b6c92 to
1363488
Compare
1363488 to
4d9574f
Compare
exceptionfactory
left a comment
There was a problem hiding this comment.
@ing-mattioni Are you still working on this, or is it ready to review? Changing from throwing an exception to routing to failure alters the behavior in a notable way, so that needs some consideration.
|
@exceptionfactory for me it is ready to review but it is not a problem if you and the team decide that dhanging from throwing an exception to routing to failure is not acceptable as a change (in my use case it will be probably be better, but I undestand that in other scenarios it could be worse or not optimal) |
|
Thanks @ing-mattioni. One straightforward option is to add the |
Summary
NIFI-16241
This pull request updates
PublishAMQPto route FlowFiles to the failure relationship when the evaluated Routing Key is null, empty, or whitespace-only. This prevents invalid FlowFiles from being rolled back and repeatedly processed.Changes
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000VerifiedstatusPull Request Formatting
mainbranchVerification
Build
./mvnw clean install -P contrib-checkModule-level verification performed:
.\mvnw.cmd -pl :nifi-amqp-processors -am testAdditional verification performed:
.\mvnw.cmd -pl :nifi-amqp-processors -am -P contrib-check install -DskipTests.\mvnw.cmd -pl :nifi-amqp-nar -am install -DskipTestsLicensing
LICENSEandNOTICEfilesNo new dependencies were added.
Documentation
No user-facing documentation files were changed.