Skip to content

AxonOps — AI-Native Control Plane for Open Source Data Platforms

Kafka Connect Task Failure

Separate worker availability, connector configuration, and individual task execution.

Terminal window
curl -sS http://connect.example.com:8083/connectors/orders-sink/status
curl -sS http://connect.example.com:8083/connectors/orders-sink/config
curl -sS http://connect.example.com:8083/connector-plugins

The 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.

ScopeTypical causes
Worker absentProcess, REST listener, Kafka connectivity, internal topics
Connector failedConfiguration, permissions, connector initialization
One task failedPartition-specific data, source/sink shard, poison record
All tasks fail togetherShared credentials, schema, dependency, network
Plugin not foundplugin.path, packaging, service manifests/discovery
Conversion failureConverter mismatch, schema compatibility, malformed record
  1. Confirm worker membership and REST reachability.
  2. Check config, offset, and status internal topics for availability, replication, compaction, and authorization.
  3. Validate plugin discovery and dependency isolation on every worker.
  4. Check converter/schema settings independently of connector business configuration.
  5. Test source or sink reachability with the worker's identity and network.
  6. Identify whether retries, tolerance, or DLQ policy is masking repeated failures.
  • 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.

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.

Worker membership stabilizes, connector and tasks remain RUNNING, offsets advance, retry/DLQ rates normalize, and source-to-sink data is complete without unacceptable duplicates.