-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
5
The current compact command only takes in a collection name and runs compact against the collection and index tables as indicated in the existing documentation for MongoDB 6.0. This project modifies the API while ensuring backward compatibility by adding a new field indicating the minimum space compact should be able to reclaim.
A prototype of the API can be found below:
db.runCommand(
{
compact: <collection name>,
freeSpaceTargetMB: <number>, // Optional, minimum space available to reclaim in MB, default is 20MB.
}
)
- depends on
-
WT-11332 Update the compact session API with a "free_space_target" option
- Closed
-
SERVER-81177 Update the compact command with IDL
- Closed
- is related to
-
WT-11821 WiredTiger data corruption detected in config_fuzzer_simulate_crash_concurrency_replication with compact.js
- Closed
- related to
-
SERVER-82781 Simulate crash test hook may leave behind part of file when copying data
- Closed
-
SERVER-82846 Add the new compaction "freeSpaceTargetMB" option to the compact indexes
- Closed
-
SERVER-87434 Add freeSpaceTargetMB to the help() function for the compact and autoCompact commands
- Closed