Skip to content

Kafka Connect: Include connector name in coordinator and committer thread names#16355

Open
soumyajit-sahu wants to merge 1 commit into
apache:mainfrom
soumyajit-sahu:connector_name_in_committer_and_coord_threads
Open

Kafka Connect: Include connector name in coordinator and committer thread names#16355
soumyajit-sahu wants to merge 1 commit into
apache:mainfrom
soumyajit-sahu:connector_name_in_committer_and_coord_threads

Conversation

@soumyajit-sahu
Copy link
Copy Markdown
Contributor

@soumyajit-sahu soumyajit-sahu commented May 15, 2026

Problem

When multiple Iceberg sink connectors run in the same Kafka Connect worker process, all
coordinator threads share the same name iceberg-coord and all committer threads share
names like iceberg-committer-0, iceberg-committer-1, etc.
This makes log-based debugging difficult: when a coordinator fails to commit or a committer
thread throws an error, the log output gives no indication of which connector is responsible.

Proposed Change

Include the connector name in the thread names:

  • CoordinatorThread: rename from iceberg-coordiceberg-coord-<connectorName>
  • Committer ThreadPoolExecutor inside Coordinator: rename from iceberg-committer-%diceberg-committer-<connectorName>-%d

Impact

With this change, operators running multiple connectors on the same worker can immediately
identify which connector's coordinator or committer thread is present in a log line, without
needing additional context or MDC instrumentation.

Closes #16354

@soumyajit-sahu soumyajit-sahu changed the title Include connector name in coordinator and committer thread names Kafka Connect: Include connector name in coordinator and committer thread names May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kafka Connect: Include connector name in coordinator and committer thread names

1 participant