When creating a Kafka producer with exactly-once semantics using the Kafka API, two properties have to be set: transactional.id has to be set to a transactional id, and enable.idempotence has to be set to true.
In Apache Flink, a FlinkKafkaProducer can be configured with a parameter for the desired semantics of the producer, in particular with the value Semantics.EXACTLY_ONCE for exactly once semantics.
Looking at the source code of the FlinkKafkaProducer, transactional ids are automatically generated and maintained. However, I did not found any place where enable.idempotence is set to true for the ProducerConfig of the underlying KafkaProducer.
Does the property enable.idempotence have to be provided in the ProducerConfig given to the FlinkKafkaProducer, or is there something I have overseen?