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

Incompatible change in verifiable_producer.log in 2.8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.8.0
    • 2.8.0
    • core

    Description

      In test_verifiable_producer.py , we used to see this error message in verifiable_producer.log when a topic couldn't be created:

      WARN [Producer clientId=producer-1] Error while fetching metadata with correlation id 1 :

      {test_topic=LEADER_NOT_AVAILABLE}

      (org.apache.kafka.clients.NetworkClient)
      The test does a grep LEADER_NOT_AVAILABLE on the log in this case, and it used to pass.

      Now we are instead seeing this in the log file:

      WARN [Producer clientId=producer-1] Error while fetching metadata with correlation id 1 :

      {test_topic=INVALID_REPLICATION_FACTOR}

      (org.apache.kafka.clients.NetworkClient)
      And of course now the test fails.

      The INVALID_REPLICATION_FACTOR is coming from the new auto topic creation manager.

      It is a simple matter to make the test pass – I have confirmed that it passes if we grep for INVALID_REPLICATION_FACTOR in the log file instead of LEADER_NOT_AVAILABLE.

      I think we just need to decide if this change in behavior is acceptable or not.

      Attachments

        Issue Links

          Activity

            People

              bchen225242 Boyang Chen
              cmccabe Colin McCabe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: