[SERVER-80120] Add the new compaction "freeSpaceTargetMB" option to the compact API Created: 16/Aug/23 Updated: 07/Dec/23 Resolved: 18/Oct/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.2.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Gregory Wlodarek | Assignee: | Sean Watt |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||
| Story Points: | 5 | ||||||||||||||||||||||||||||||||
| Description |
|
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:
|
| Comments |
| Comment by Githook User [ 18/Oct/23 ] |
|
Author: {'name': 'Sean04', 'email': 'sean.watt@mongodb.com', 'username': 'Sean04'}Message: |
| Comment by Sean Watt [ 13/Oct/23 ] |
|
I modified the compact.js test while working on this ticket to include a remove state that creates free space in the collections, allowing compact to properly do work. This resulted in config_fuzzer_simulate_crash_concurrency_replication_gen failing with a corrupt block when the file is reopened. I've created |