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

ClientQuotaManager threads prevent shutdown when encountering an error loading logs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.11.0.0, 1.0.0
    • 1.0.1, 1.1.0
    • None
    • None

    Description

      While diagnosing KAFKA-6163, we noticed that when the broker initiates a shutdown sequence in response to an error loading the logs, the process never exits. The JVM appears to be waiting indefinitely for several non-deamon threads to terminate.

      The threads in question are ThrottledRequestReaper-Request, ThrottledRequestReaper-Produce, and ThrottledRequestReaper-Fetch, so it appears we don't properly shutdown ClientQuotaManager in this situation.

      QuotaManager shutdown is currently handled by KafkaApis, however KafkaApis will never be instantiated in the first place if we encounter an error loading the logs, so quotamangers are left dangling in that case.

      Attachments

        Activity

          People

            rsivaram Rajini Sivaram
            xvrl Xavier Léauté
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: