Why topics or partitions not replicated
Apache Kafka® MirrorMaker 2 provides reliable message replication across Kafka clusters using configurations, states, and offsets. Various factors can disrupt the replication of topics and partitions, preventing them from progressing as expected.
These guidelines assume that you have previously set up a MirrorMaker replication flow and have identified an issue with the replication of certain topics or partitions.
note
You can assess Aiven for Apache Kafka MirrorMaker 2 replication issues in several ways:
- Basic monitoring
- Log search
- Offset sync status analysis
Excessive message size
The error RecordTooLargeException appears in service logs when a record exceeds the
allowed size. This can occur in two scenarios:
-
Target Apache Kafka broker rejects a record
- Cause: The record is larger than the destination topic's allowed size.
- Solution: Increase the
max_message_bytesvalue for the topic or the broker’smessage_max_bytesconfiguration. Restart the worker tasks to apply the new settings.
-
MirrorMaker connector rejects the record
- Cause: The record is larger than the maximum producer request size.
- Solution: Update the
producer_max_request_sizein the integration configuration. For more details, see the integration configuration documentation.