[SERVER-71678] Allow compact to run on system collections Created: 29/Nov/22  Updated: 29/Oct/23  Resolved: 07/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Task Priority: Minor - P4
Reporter: Gregory Wlodarek Assignee: Kaitlin Mahar
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-15885 Investigate changes in SERVER-71678: ... Closed
Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2023-02-20
Participants:

 Description   

System collections can't be compacted:

// Items in system.* cannot be moved as there might be pointers to them.
uassert(ErrorCodes::InvalidNamespace, "can't compact a system namespace", !nss.isSystem());

This restriction was added in SERVER-11595 and is likely an MMAP limitation. With WiredTiger being the default storage engine, this is no longer necessary as WiredTiger supports online compaction.



 Comments   
Comment by Githook User [ 07/Feb/23 ]

Author:

{'name': 'Kaitlin Mahar', 'email': 'kaitlin.mahar@mongodb.com', 'username': 'kmahar'}

Message: SERVER-71678 Allow compact to run on system collections
Branch: master
https://github.com/mongodb/mongo/commit/efae210382cee872fa264414f2330bca38eb62a7

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