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

Storage size incorrectly reported with zlib compression

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: