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

Broker may not shut down when SocketServer fails to bind as Address already in use

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.7.0, 3.6.1, 3.8.0
    • 3.6.2, 3.8.0, 3.7.1
    • None
    • None

    Description

      When in Zookeeper mode, if a port the broker should listen to is already bound

      the KafkaException: Socket server failed to bind to localhost:9092: Address already in use.

      is thrown but the Broker continues to startup .

      It correctly shuts down when in KRaft mode.

      Easy to reproduce when in Zookeper mode with server.config set to listen to localhost only
      listeners=PLAINTEXT://localhost:9092
       
       

      Attachments

        1. kraft-server.log
          22 kB
          Edoardo Comar
        2. server.log
          4 kB
          Edoardo Comar

        Issue Links

          Activity

            People

              ecomar Edoardo Comar
              ecomar Edoardo Comar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: