[SERVER-67036] Creating capped collections does not use minimum size of 4096 bytes Created: 06/Jun/22  Updated: 29/Oct/23  Resolved: 15/Jun/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc11, 6.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Xuerui Fa Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Documented
is documented by DOCS-15409 Investigate changes in SERVER-67036: ... Closed
Related
related to SERVER-67246 Remove size multiple restriction on c... Closed
is related to SERVER-1864 Support Resizing Capped Collections Closed
is related to SERVER-51501 recognize the timeseries option of th... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: Execution Team 2022-06-27
Participants:

 Description   

In our documentation, we state that capped collections use a minimize size of 4096 bytes. From local testing, it seems that this minimum size is not being utilized.

We found that collMod does use this minimum size correctly – resizing an existing capped collection to less than 2048 bytes does resize it to 4096.



 Comments   
Comment by Githook User [ 20/Jun/22 ]

Author:

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

Message: SERVER-67036 remove floor for collMod cappedSize option to be consistent with create command

(cherry picked from commit d507d5e0048bc9093b3f59aec6eb2a02473d6113)
Branch: v6.0
https://github.com/mongodb/mongo/commit/699be8f8b3cde2038894f31041c9daaf6db7c032

Comment by Githook User [ 15/Jun/22 ]

Author:

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

Message: Revert "SERVER-67036 remove floor for collMod cappedSize option to be consistent with create command"

This reverts commit 51e661694db82f5751f86a2efdd83c2427c32ed1.
Branch: v6.0
https://github.com/mongodb/mongo/commit/82ddea1581794f10126169c357b4fbdd414178fc

Comment by Githook User [ 14/Jun/22 ]

Author:

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

Message: SERVER-67036 remove floor for collMod cappedSize option to be consistent with create command

(cherry picked from commit d507d5e0048bc9093b3f59aec6eb2a02473d6113)
Branch: v6.0
https://github.com/mongodb/mongo/commit/51e661694db82f5751f86a2efdd83c2427c32ed1

Comment by Githook User [ 14/Jun/22 ]

Author:

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

Message: SERVER-67036 remove floor for collMod cappedSize option to be consistent with create command
Branch: master
https://github.com/mongodb/mongo/commit/d507d5e0048bc9093b3f59aec6eb2a02473d6113

Comment by Benety Goh [ 14/Jun/22 ]

We will remove the 256-byte rounding in SERVER-67246.

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