[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:
Depends
is depended on by SERVER-80123 Enable background compaction by defau... Open
Problem/Incident
causes SERVER-83998 Get the lock IX before calling autoCo... Closed
Related
related to SERVER-84357 Exclude the oplog when auto compactio... Open
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: SERVER-83734 Create a command to enable background compaction at startup

GitOrigin-RevId: 37bc78eb2ed3ef5859c8df2f49f7141c08f6477b
Branch: master
https://github.com/mongodb/mongo/commit/d35d76d6e503fe479a025b04bfb095f22e8ef15b

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.

Generated at Thu Feb 08 06:52:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.