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

LogCleaner may take a long time to shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.2.0
    • 0.8.2.0
    • core

    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_2014-07-24_20:38:52.patch
          2 kB
          Manikumar
        2. KAFKA-1544.patch
          0.8 kB
          Manikumar

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: