Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-9033

Change default client-id in consumer / producer to be more meaningful

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.0
    • Component/s: clients
    • Labels:
      None

      Description

      Right now in consumer / producer, the default client-id is set as consumer-[suffix] and producer-[suffix] which is not very meaningful; on the other hand, since client-ids will be shown on the broker request logs it can be very useful for debugging purposes.

      So I'd propose we change their default values as the following:

      1. For producer:

      producer-[transactionalId]-[suffix] where transactionalId would be set to none if null.

      2. For consumer:

      consumer-[groupId]-[instanceId or suffix] where groupId would be set to none if null, and suffix would only be used if instanceId is set to null.

        Attachments

          Activity

            People

            • Assignee:
              hachikuji Jason Gustafson
              Reporter:
              guozhang Guozhang Wang

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment