Enabling exactly-once semantics for replication flows
You enable exactly once semantics (EOS) for replication flows by configuring EOS in the KafkaConnect resource. Optionally, Cloudera recommends that you set the source consumer isolation level in your MirrorSourceConnector to read_committed.
The progress of MirrorSourceConnector is tracked by periodically committing the offsets of the processed messages. If the connector fails, uncommitted messages are reprocessed after the connector starts running again.
Using EOS, source connectors are able to handle offset commits and message
produces in a single transaction. This either results in a successful operation
where messages are produced to the target topic along with offset commits, or a
rollback of the whole operation. EOS is enabled in the
KafkaConnect resource with the
exactly.once.source.support
property.
isolation.level
property. You set the property to
read_committed
.