Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-54196

WiredTiger compact command does not compact data when it does not meet the compact condition

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 4.4.2
    • Fix Version/s: None
    • Component/s: WiredTiger
    • Labels:
      None

      Description

      We run MongoDB 4.4.2 in RS to store about 13Tb of data, and in case of deleting some unused datasets from collections we need to reclaim disk space.

      For this option we use compact() functionality, but it doesn't work as expect.

      wiredTiger["block-manager"]["file bytes available for reuse"]
      19963424768

      but

      db.runCommand({ compact: 'my_collection'})
      {
       "bytesFreed" : 315392,
       "ok" : 1,
       "$clusterTime" : {
       "clusterTime" : Timestamp(1612200831, 1256),
       "signature" : {
       "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
       "keyId" : NumberLong(0)
       }
       },
       "operationTime" : Timestamp(1612200082, 1373)
      }

       

      and no extra space on disk.

      Any ideas?

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmitry.agranat Dmitry Agranat
              Reporter:
              maklakov.andrew@gmail.com Андрей Маклаков
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: