ing-mattioni commented on code in PR #11242:
URL: https://github.com/apache/nifi/pull/11242#discussion_r3257464096


##########
nifi-extension-bundles/nifi-amqp-bundle/nifi-amqp-processors/src/main/java/org/apache/nifi/amqp/processors/PublishAMQP.java:
##########
@@ -166,6 +166,12 @@ protected void processResource(final Connection 
connection, final AMQPPublisher
             return;
         }
 
+        if (flowFile.getSize() > Integer.MAX_VALUE) {
+            getLogger().error("FlowFile {} with size {} bytes is too large to 
publish as an AMQP message", flowFile, flowFile.getSize());
+            session.transfer(session.penalize(flowFile), REL_FAILURE);

Review Comment:
   Removed penalization when routing to failure and added a regression 
assertion.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to