Skip to content

Kafka Connect: Include connector name in commit thread names#17033

Open
hutiefang76 wants to merge 1 commit into
apache:mainfrom
hutiefang76:codex/iceberg-16354-thread-names
Open

Kafka Connect: Include connector name in commit thread names#17033
hutiefang76 wants to merge 1 commit into
apache:mainfrom
hutiefang76:codex/iceberg-16354-thread-names

Conversation

@hutiefang76

Copy link
Copy Markdown

Fixes #16354.

This updates the Kafka Connect sink commit thread names to include the connector name:

  • coordinator threads now use iceberg-coord-<connector-name> when started by a committer
  • committer worker pool threads now use iceberg-committer-<connector-name>-%d

This makes thread dumps and worker logs easier to attribute when multiple Iceberg sink connectors run in the same Kafka Connect worker. The existing package-private CoordinatorThread(Coordinator) constructor is kept unchanged for existing tests/internal callers.

Validation:

  • JAVA_HOME=$(/usr/libexec/java_home -v 17) ./gradlew :iceberg-kafka-connect:iceberg-kafka-connect:test --tests org.apache.iceberg.connect.channel.TestCoordinatorThread --tests org.apache.iceberg.connect.channel.TestCommitterImpl --no-daemon
  • JAVA_HOME=$(/usr/libexec/java_home -v 17) ./gradlew :iceberg-kafka-connect:iceberg-kafka-connect:spotlessCheck --no-daemon
  • git diff --check

AI Disclosure

Include the connector name in Kafka Connect coordinator and committer thread names so thread dumps are easier to attribute when multiple connectors run in the same worker.

Generated-by: Codex GPT-5
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