Pipeline tuning
Error handling and topic creation retries.
Replication runs continuously, and transient failures — a topic not yet visible after creation, a corrupted control message — should not always stop the pipeline. Kafka's admin API and internal topics can be briefly inconsistent after changes, therefore K2K exposes retry and error-handling settings for these cases.
Parallelism tuning is in Horizontal scaling. Consumer, producer, and commit performance tuning is in Replication performance tuning. Commit batching is in Commit tuning. Offset mapper error handling is in Offset mapping.
Prerequisites
Topic selection and data routing configured
Example
name: "my_pipeline"
source:
kafka:
common:
"bootstrap.servers": "source:9092"
consumer:
"group.id": "my-k2k-group"
target:
kafka:
common:
"bootstrap.servers": "target:9092"
configuration:
autoControlTopicCreationCheckDelay: "750 milliseconds"
autoControlTopicCreationMaxAttempts: 10
errorHandling:
onCommitSyncTimeout: fail
onControlMessageDeserializationError: ignore
replication:
- source:
topic: "orders.*"
- sink:
topic: source
partition: sourceConfiguration keys
Topic creation retries
configuration.autoControlTopicCreationCheckDelay
Wait between retries when verifying a created topic exists
No
750 milliseconds
Both
configuration.autoControlTopicCreationMaxAttempts
Max retries when verifying topic creation
No
10
Both
Replicator error handling
errorHandling.onCommitSyncTimeout
Action when commit sync times out (fail or ignore)
No
fail
Replicator
errorHandling.onControlMessageDeserializationError
Action when a control message cannot be deserialized (fail or ignore)
No
ignore
Replicator
Last updated
Was this helpful?

