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

Incorrect log size for topics larger than 2 GB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.11.0.0
    • 0.11.0.1
    • log

    Description

      The size of a Log is calculated incorrectly due to an Integer overflow. For large topics (larger than 2 GB) this value overflows.

      This is easily observable in the reported metrics values of the path log.Log.partition.*.topic.<topicname>.Size (see attached screenshot).

      Moreover I think this breaks the size-based retention (via log.retention.bytes and retention.bytes) of large topics as well.

      I am not sure on the recommended workflow, should I open a pull request on github with a fix?

      Attachments

        1. Screen Shot 2017-07-12 at 09.10.53.png
          42 kB
          Gregor Uhlenheuer

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kongo2002 Gregor Uhlenheuer
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: