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

Kafka is logging too verbosely at the INFO level

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.0
    • None
    • logging
    • None

    Description

      Some of the INFO level log4j entries are quite verbose and not really useful, for example in kafka.coordinator.group.GroupMetadataManager, the following log can be constantly printed with 0 expired offsets:

       

      info(s"Removed $numOffsetsRemoved expired offsets in ${time.milliseconds() - currentTimestamp} milliseconds.")

       

       

      Other examples include:

      kafka.coordinator.group.GroupMetadataManager.GroupCoordinator:

       

      info(s"Group ${group.groupId} with generation ${group.generationId} is now empty " +            s"(${Topic.GROUP_METADATA_TOPIC_NAME}-${partitionFor(group.groupId)})")
      
      info(s"Preparing to rebalance group ${group.groupId} in state ${group.currentState} with old generation " +      s"${group.generationId} (${Topic.GROUP_METADATA_TOPIC_NAME}-${partitionFor(group.groupId)}) (reason: $reason)")
      
      info(s"Assignment received from leader for group ${group.groupId} for generation ${group.generationId}")
      
      info(s"Stabilized group ${group.groupId} generation ${group.generationId} " + s"(${Topic.GROUP_METADATA_TOPIC_NAME}-${partitionFor(group.groupId)})")
      

       

       

      We should move them to DEBUG if they are expected in normal state.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Greg Hamilton Greg Hamilton
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: