Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-6887

Storage size incorrectly reported with zlib compression

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.4.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Docker image mongo:4.4.1

      I see that storage size is not reported correctly if I run with zlib compression. I tried:

      docker run --name mongo -p 27017:27017 -d mongo:4.4.1 --wiredTigerCollectionBlockCompressor zlib

      And when I query collection stats using:

      db.collection.stats()

      I get (redacted):

      {
       size: 6200000,
       count: 200000,
       avgObjSize: 31,
       storageSize: 4096,
       totalIndexSize: 20480,
       totalSize: 24576,
       indexSizes: { _id_: 20480 }
      }

      See how storageSize is 4096. It is so and it does not change.

            Assignee:
            backlog-server-triage [HELP ONLY] Backlog - Triage Team
            Reporter:
            mitar NOVALUE Mitar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: