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

release tarball is unnecessarily large due to duplicate libraries

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0.1
    • Fix Version/s: 0.10.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Between 0.8.2.2 and 0.9.0, our release tarballs grew from 17M to 34M. We thought it is just due to new libraries and dependencies. But:
      1. If you untar Kafka into a directory and check the directory size (du -sh), it is around 28M, smaller than the tarball. Recompressing give you 25M tarball.
      2. If you list the original tar contents and grep for "snappy", you see it 4 times in the tarball.

      Clearly we are creating a tarball with duplicates (and we didn't before).
      I think its due to how we are generating the tarball from core but pull in other projects into libs/ directory with their dependencies (which overlap).

      We need to find out how to sort it out (possibly with excludes).

        Attachments

          Activity

            People

            • Assignee:
              granthenke Grant Henke
              Reporter:
              gwenshap Gwen Shapira
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: