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

Shutdown is blocked if connection to Zookeeper is lost

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.3.0
    • 3.0.0
    • core
    • None
    • Linux, Docker 19.03.4

    Description

      We are using Kafka and Zookeeper in Docker swarm stacks. When we undeploy a stack, sometimes Kafka doesn't shutdown properly and is finally killed by Docker (thus leaving potentially corrupted files).

      Here are the steps to reproduce (simple Docker, no swarm):

       

      docker network create test
      docker run -d --network test --name zk --rm zookeeper:3.5.6
      docker run --network test --name kf --rm -e "KAFKA_ZOOKEEPER_CONNECT=zk:2181" -e "KAFKA_ADVERTISED_LISTENERS=INSIDE://:9091" -e "KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=INSIDE:PLAINTEXT" -e "KAFKA_INTER_BROKER_LISTENER_NAME=INSIDE" confluentinc/cp-kafka:5.3.1
      

       

      In another shell:

       

      docker stop zk
      docker stop kf
      

       

      Attachments

        Issue Links

          Activity

            People

              ijuma Ismael Juma
              bgranvea Boris Granveaud
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: