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

Change Name of Default Client ID and Include Java Version

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • clients

    Description

      Clients and producers should be providing useful clientId information, including software name and version number.  With that said, Kafka Java client should produce a more useful ID to include the word 'Java' and the version number of the JVM.  Also, allow users to take advantage of the same sequence number that is currently available to the default naming scheme.

       

      The current default behavior for generating clientID in Kafka is the following:

      consumer- + CONSUMER_CLIENT_ID_SEQUENCE.getAndIncrement()

      So the current default is to create a dynamically changing consumer ID.

      The change proposed in this JIRA is three fold:

      • Change the default clientID from consumer to Java-kafka-client
      • Include the version of Java in the clientID
      • Allow users to set the consumer ID to whatever they would like, but maintain the ability to include the sequence number

      So, this does not break any current behaviors. It just adds additional context to the default value.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              belugabehr David Mollitor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: