For the complete documentation index, see llms.txt. This page is also available as Markdown.

Troubleshooting

Diagnose runtime replication issues.

This page covers symptoms that appear after K2K has started. For pre-flight connectivity checks, see Startup validation. For a structured pre-deployment workflow, see the Validation checklist.

Replication lag growing

Symptom
Likely cause
What to check

Lag metrics increase steadily

Insufficient throughput for source volume

Lag spikes during rebalances

Consumer group instability on source

K2K group configuration in Consumer group; partition count vs instance count

Lag on specific partitions only

Hot partitions or assignment skew

Partition distribution across replicator instances; Observability metrics

Offset mapping not progressing

Symptom
Likely cause
What to check

Target consumer groups stay at old offsets

Offset mapper not running

Deployment — both k2k and k2k-offset-mapping must run

No mappings available

Replicator not running with offset mapping enabled

features.offsetMapping: enabled in pipeline; replicator must record mappings

Groups not translated

Group not matched by groups.consumerGroups

Offset mapping — the filter is a regex or an exact list

Translations skipped with no error

features.applyMappingsGuard (on by default) found a newer committed offset on the target

Offset mapper fails at startup

Missing target.kafka.consumer."group.id", or a license token without the offset mapping entitlement

Use k2k-tool to inspect committed offsets during failover or migration cutover.

Control topic errors

K2K uses internal control topics on the target Kafka cluster for coordination, commits, offset mappings, and metrics. See the Glossary for definitions.

Symptom
Likely cause
What to check

Startup fails on control topic validation

Topic misconfiguration or missing permissions

onControlMessageDeserializationError warnings

Corrupted or incompatible control messages

Pipeline tuning error handling settings

Replication stalls after rebalance

Exclusive assignment not granted

Horizontal scaling; check control topic consumer lag

Do not delete control topics while K2K is running. If control topics are lost, stop K2K, recreate them (or enable auto-creation), and restart. Replication may need to resume from the last committed offset.

Connection and auth failures at runtime

Symptom
Likely cause
What to check

Intermittent TimeoutException

Network latency to target cluster

Deploy replicator near the target cluster; see Deployment

SASL authentication errors

Expired credentials or wrong mechanism

Schema Registry errors

Registry unreachable or auth mismatch

Enable features.checkKafkaConnectionOnStartup temporarily after credential or network changes. See Startup validation.

Licensing failures

Symptom
Likely cause
What to check

Pipeline ran fine, then stopped with a free tier partition limit error

No license.token, and a new topic pushed the matched partition total over the cap

Free tier — the cap is re-checked on every rebalance, so a topic regex can exceed it long after startup

A feature fails at startup with a license restriction

Token does not carry that entitlement

Running pipeline stops unexpectedly

License expired — expiry is checked continuously, not only at startup

Startup fails on EULA

license.acceptEula not set to true

Exactly once and duplicate records

Symptom
Likely cause
What to check

Duplicate records on target

Exactly once not enabled or fencing failure

Producer transaction errors

Target cluster does not support transactions

Cluster compatibility in Releases and compatibility

Getting help

When reporting an issue, include:

  • K2K version (k2k --version)

  • Pipeline name and relevant feature toggles (redact secrets)

  • Metrics or logs from Observability exporters

  • Output of k2k-tool describe if offset-related

Feedback channels are listed on the home page.

Last updated

Was this helpful?