Skip to content

KAFKA-19070: add taskId to consumer override clientId #19382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

lorcanj
Copy link
Contributor

@lorcanj lorcanj commented Apr 5, 2025

Addresses: KAFKA-19070

The default clientId for the connector consumer is 'connector-consumer-' plus the task id value. When a user overrides this the task id value is not used and it's not possible to differentiate between the different tasks using the overridden clientId.

The idea is to append the taskId that is used in the default clientId to the user defined value.

@github-actions github-actions bot added triage PRs from the community connect small Small PRs labels Apr 5, 2025
@lorcanj
Copy link
Contributor Author

lorcanj commented Apr 5, 2025

I think this may require a KIP as this would potentially break some client code if people try to do matching on the overridden client id which would no longer match as the string would be different.

I have also noticed this being done with other configs, for example 'connector-producer-', so if this is a sensible approach, it may be worth applying this change to a wider set of configs.

Copy link

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connect needs-attention small Small PRs triage PRs from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant