exceptionfactory commented on code in PR #11413:
URL: https://github.com/apache/nifi/pull/11413#discussion_r3555686790
##########
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:
A multiline string can be used instead of string concatenation for the
description
--
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]