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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0
    • clients
    • 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

        Issue Links

          Activity

            People

              hachikuji Jason Gustafson
              guozhang Guozhang Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: