Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-17151 Remove waitForCondition when detecting thread leak
  3. KAFKA-17152

Make sure zk session tracker gets down when closing embedded zk

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.9.0
    • None
    • None

    Description

      zk `SessionTrackerImpl`[0] exits the loop on background, and hence it can keep alive for a while after zk shutdown. We should have a small waiting for it when closing `EmbeddedZookeeper` [1]

      [0] https://github.com/apache/zookeeper/blob/master/zookeeper-server/src/main/java/org/apache/zookeeper/server/SessionTrackerImpl.java#L158
      [1] https://github.com/apache/kafka/blob/trunk/core/src/test/scala/unit/kafka/zk/EmbeddedZookeeper.scala#L53

      Attachments

        Issue Links

          Activity

            People

              frankvicky TengYao Chi
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: