Kafka Connect Task Failure
Separate worker availability, connector configuration, and individual task execution.
Capture Status Before Restarting
Section titled “Capture Status Before Restarting”curl -sS http://connect.example.com:8083/connectors/orders-sink/statuscurl -sS http://connect.example.com:8083/connectors/orders-sink/configcurl -sS http://connect.example.com:8083/connector-pluginsThe task status trace often contains the root exception. Preserve it with worker logs, connector/task IDs, offsets, source/sink response, plugin version, converter settings, and deployment timeline.
Classify the Failure
Section titled “Classify the Failure”| Scope | Typical causes |
|---|---|
| Worker absent | Process, REST listener, Kafka connectivity, internal topics |
| Connector failed | Configuration, permissions, connector initialization |
| One task failed | Partition-specific data, source/sink shard, poison record |
| All tasks fail together | Shared credentials, schema, dependency, network |
| Plugin not found | plugin.path, packaging, service manifests/discovery |
| Conversion failure | Converter mismatch, schema compatibility, malformed record |
Diagnose
Section titled “Diagnose”- Confirm worker membership and REST reachability.
- Check config, offset, and status internal topics for availability, replication, compaction, and authorization.
- Validate plugin discovery and dependency isolation on every worker.
- Check converter/schema settings independently of connector business configuration.
- Test source or sink reachability with the worker's identity and network.
- Identify whether retries, tolerance, or DLQ policy is masking repeated failures.
Recover
Section titled “Recover”- Correct the root configuration, credential, plugin, schema, or dependency failure.
- Restart only the failed task/connector after preserving the trace.
- For poison records, use the connector's supported error policy and preserve record identity; do not skip silently.
- Restore internal topics before scaling or repeatedly restarting workers.
Warning
Deleting Connect internal topics or manually rewriting offsets can duplicate, skip, or orphan work. Treat offset changes as a migration with an explicit recovery plan.
Kafka 4.4 Checks
Section titled “Kafka 4.4 Checks”Distributed workers can disable automatic internal-topic creation with internal.topics.automatic.creation.enable=false. Confirm controlled provisioning when disabled. Kafka Connect does not use Kafka 4.4 asynchronous bootstrap DNS resolution.
Verify
Section titled “Verify”Worker membership stabilizes, connector and tasks remain RUNNING, offsets advance, retry/DLQ rates normalize, and source-to-sink data is complete without unacceptable duplicates.