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

Increasing log retention quickly overflows scala Int

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.10.1.0
    • 0.8.1
    • log
    • None

    Description

      After increasing log.retention.hours from the default of 168 to 744 (31 days) I noticed that logs were being deleted at every cleanup interval.

      scala> val retentionMs: Long = 60 * 60 * 1000 * 31 * 24
      retentionMs: Long = -1616567296

      This only appears to affect trunk. I'll attach the minor patch I'm using locally. Thanks.

      Attachments

        1. KAFKA-985.patch
          1 kB
          Frank Fejes

        Activity

          People

            jkreps Jay Kreps
            ffejes Frank Fejes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: