[SERVER-83734] Create a server parameter to enable background compaction on startup Created: 30/Nov/23 Updated: 07/Jan/24 Resolved: 06/Dec/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.3.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Etienne Petrel | Assignee: | Etienne Petrel |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | code-quality | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Assigned Teams: |
Storage Engines
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Sprint: | 2023-12-12 - Heisenbug | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Story Points: | 5 | ||||||||||||||||||||||||
| Description |
|
We would like to be able to start the server with background compaction enabled by default to make testing easier to start with. By providing the argument enableAutoCompaction, the server would call the autoCompact command or the right WiredTiger API. |
| Comments |
| Comment by Githook User [ 06/Dec/23 ] |
|
Author: {'name': 'Etienne Petrel', 'email': 'etienne.petrel@mongodb.com', 'username': 'etienneptl'}Message: GitOrigin-RevId: 37bc78eb2ed3ef5859c8df2f49f7141c08f6477b |
| Comment by Etienne Petrel [ 04/Dec/23 ] |
|
Thank you, gregory.wlodarek@mongodb.com. Since we would like to call the autoCompact command in this location but it needs an OperationContext, can we update the notifyStartupComplete to take an OperationContext? |
| Comment by Gregory Wlodarek [ 30/Nov/23 ] |
|
This spot would make sense. We shouldn't have to check if we're in repair mode here, as repair will cause the server to shutdown before we get here. |
| Comment by Etienne Petrel [ 30/Nov/23 ] |
|
gregory.wlodarek@mongodb.com, as discussed on Slack, where would be the safest place to start background compaction from the server perspective? Where does recovery end? |
| Comment by Etienne Petrel [ 30/Nov/23 ] |
|
See this comment for some context. |