Be more explicit about the need to turn off autoCompact before being able to reconfigure it

XMLWordPrintableJSON

    • Storage Engines - Server Integration
    • Fully Compatible
    • v8.0
    • RSS Sydney - 2024-06-11
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Atlas atlas-ktz9lc-shard-0 [direct: primary] admin> db.runCommand( { autoCompact: true, freeSpaceTargetMB:1, runOnce: false })
      MongoServerError[BadValue]: WiredTigerKVEngine::autoCompact() 22: Invalid argument
      

      Tried leaving out "runOnce"

      Atlas atlas-ktz9lc-shard-0 [direct: primary] admin> db.runCommand( { autoCompact: true, freeSpaceTargetMB: 1})
      MongoServerError[BadValue]: WiredTigerKVEngine::autoCompact() 22: Invalid argument
      

      The option is correct - if I change the option name it correctly tells me that option doesn't exist

      Atlas atlas-ktz9lc-shard-0 [direct: primary] admin> db.runCommand( { autoCompact: true, freeSpaceTargetMb: 1, runOnce: false })
      MongoServerError[IDLUnknownField]: BSON field 'autoCompact.freeSpaceTargetMb' is an unknown field.
      

      Tried other values

      Atlas atlas-ktz9lc-shard-0 [direct: primary] admin> db.runCommand( { autoCompact: true, freeSpaceTargetMB: 1024, runOnce: false })
      MongoServerError[BadValue]: WiredTigerKVEngine::autoCompact() 22: Invalid argument
      

      Tried adminCommand (which should be the same as runCommand against the admin database, but just in case)

      Atlas atlas-ktz9lc-shard-0 [direct: primary] admin> db.adminCommand( { autoCompact: true, freeSpaceTargetMB: 1})
      MongoServerError[BadValue]: WiredTigerKVEngine::autoCompact() 22: Invalid argument
      

      Not sure how to actually change this from the default.

              Assignee:
              Clarisse Cheah
              Reporter:
              Joanna Cheng
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: