arpadboda commented on a change in pull request #712: MINIFICPP-1047 Add 
property "Drop empty flow files" to PublishKafka
URL: https://github.com/apache/nifi-minifi-cpp/pull/712#discussion_r369602843
 
 

 ##########
 File path: extensions/librdkafka/PublishKafka.cpp
 ##########
 @@ -99,6 +99,13 @@ core::Property PublishKafka::MessageKeyField("Message Key 
Field", "The name of a
                                              "");
 core::Property PublishKafka::DebugContexts("Debug contexts", "A 
comma-separated list of debug contexts to enable."
                                            "Including: generic, broker, topic, 
metadata, feature, queue, msg, protocol, cgrp, security, fetch, interceptor, 
plugin, consumer, admin, eos, all", "");
+const core::Property PublishKafka::FailEmptyFlowFiles(
+    core::PropertyBuilder::createProperty("Fail empty flow files")
+        ->withDescription("Keep backwards compatibility with <=0.7.0 bug which 
caused flow files with empty content to not be published to Kafka and forwarded 
to failure. The old behavior is "
+                          "deprecated. Use connections to drop empty flow 
files!")
+        ->isRequired(false)
 
 Review comment:
   Fair point.
   Having a default value while the property is not required is always a bad 
smell for me. In this case it's justified. 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to