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

Increasing log retention quickly overflows scala Int

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.10.1.0
    • Fix Version/s: 0.8.1
    • Component/s: log
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: