loguylo commented on code in PR #11413:
URL: https://github.com/apache/nifi/pull/11413#discussion_r3559021389


##########
nifi-extension-bundles/nifi-kafka-bundle/nifi-kafka-processors/src/main/java/org/apache/nifi/kafka/processors/PublishKafka.java:
##########
@@ -140,6 +140,19 @@ public class PublishKafka extends AbstractProcessor 
implements VerifiableProcess
             .defaultValue(DeliveryGuarantee.DELIVERY_REPLICATED)
             .build();
 
+    static final PropertyDescriptor ENABLE_IDEMPOTENCE = new 
PropertyDescriptor.Builder()
+            .name("enable.idempotence")
+            .displayName("Enable Idempotence")
+            .description("Specifies whether the producer will ensure that 
exactly one copy of each message is written in the stream. " +
+                    "If set to ‘false’, producer retries due to broker 
failures, etc., may write duplicates of the retried message in the stream. " +
+                    "Corresponds to Kafka Client enable.idempotence property.")

Review Comment:
   Replaced the usage of string concatenation with a multiline string.



-- 
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