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

LogCleaner may take a long time to shutdown

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.2.0
    • Fix Version/s: 0.8.2.0
    • Component/s: core
    • Labels:

      Description

      We have the following code in LogCleaner. Since the cleaner thread is shutdown w/o interrupt. If may take up to backoff time for the cleaner thread to detect the shutdown flag.

      private def cleanOrSleep() {
      cleanerManager.grabFilthiestLog() match {
      case None =>
      // there are no cleanable logs, sleep a while
      time.sleep(config.backOffMs)

        Attachments

        1. KAFKA-1544.patch
          0.8 kB
          Manikumar
        2. KAFKA-1544_2014-07-24_20:38:52.patch
          2 kB
          Manikumar

          Activity

            People

            • Assignee:
              omkreddy Manikumar
              Reporter:
              junrao Jun Rao
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: