[SERVER-58865] Remove obsolete restriction on capped collection objects Created: 27/Jul/21  Updated: 29/Oct/23  Resolved: 13/Jan/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0

Type: Task Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: techdebt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-15036 [Server] Investigate changes in SERVE... Closed
Related
related to SERVER-62496 Remove FCV-gated capped collection re... Closed
is related to SERVER-20529 WiredTiger allows capped collection o... Closed
is related to DOCS-8961 [Server] WiredTiger allows capped col... Ready for Work
is related to SERVER-35112 Remove MMAPv1 code Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-01-24
Participants:

 Description   

The documentation for CannotGrowDocumentInCappedNamespace only uses MMAP as a motivation for having the error. MMAP has been removed for a few years now. We should consider coming up with a new reason that error must be returned (removing the reference to MMAP) or grapple with our FUD and remove the restriction altogether.



 Comments   
Comment by Githook User [ 13/Jan/22 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-58865 allow size changes in capped updates
Branch: master
https://github.com/mongodb/mongo/commit/8034407b08b6a77455715db105dd2058d3e7903c

Comment by Githook User [ 13/Jan/22 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-58865 remove unreachable invariant from devnull storage engine
Branch: master
https://github.com/mongodb/mongo/commit/72a53442f1adb2663ad05be2fe9a5b092a57d568

Comment by Githook User [ 13/Jan/22 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-58865 clean up capped_update.js
Branch: master
https://github.com/mongodb/mongo/commit/2542350400c80b80ced1d60c103647e551d7b24e

Comment by Benety Goh [ 10/Jan/22 ]

This change has FCV implications. A mixed version cluster will still need to enforce this restriction.

Comment by Benety Goh [ 10/Jan/22 ]

We would have to remove the Document Size section from the capped collections documentation.

Comment by Benety Goh [ 10/Jan/22 ]

This restriction was added in SERVER-20529 to support interoperability between WiredTiger and MMAPv1 nodes in a replica set.

MMAPv1 was removed in SERVER-35112 so it should be safe to remove this code. Furthermore, we should remove test coverage added in SERVER-20529 for this behavior.

Generated at Thu Feb 08 05:45:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.