kumarpritam863 opened a new pull request, #19341:
URL: https://github.com/apache/kafka/pull/19341

   **What**
   This PR updates the behavior of client.id assignment when a user provides a 
custom value via override configs in Kafka Connect.
   
   **Why**
   Currently, if a user overrides the client.id, all tasks or consumers inherit 
the same client ID. While this doesn't cause an immediate failure in Kafka, it 
leads to the following issues:
   
   - Metrics and logs are merged or overwritten, making observability 
inaccurate.
   
   - Quotas and throttling may be applied incorrectly.
   
   - Debugging becomes harder due to lack of per-task identity.
   
   **According to Kafka core behavior**, client.id should be unique per client 
instance for proper tracking and diagnostics.
   
   **How**
   This PR appends the **task number** to the user-provided client.id to ensure 
uniqueness across tasks.
   
   **For example:**
   
   - User provides: client.id=my-custom-client
   
   - Final client.id used by task 2: my-custom-client-2
   
   **This approach:**
   
   - Respects the user’s original intent in naming
   
   - Guarantees unique client.id values per task
   
   - Improves metrics, logging, and debugging consistency
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to