[DOCS-14345] Possible mistake in capped collection limit doc Created: 08/Apr/21 Updated: 30/Oct/23 Due: 17/Dec/21 Resolved: 13/Dec/21 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | 4.2.1, 4.4.0, 5.0.0 |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alperen Pulur | Assignee: | Joseph Dougherty |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | quick-fix | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
MacOS 11.2.3 |
||
| Participants: | |
| Days since reply: | 2 years, 8 weeks, 2 days ago |
| Epic Link: | DOCSP-11701 |
| Story Points: | 1 |
| Description |
DescriptionI was trying to set capped collection with limit of 2^32 - 1 (as it is stated in https://docs.mongodb.com/manual/reference/limits/#mongodb-limit-Maximum-Number-of-Documents-in-a-Capped-Collection), however I get the error message from the server "max in a capped collection has to be < 2^31". I dig in with my colleague and found that on server it is set to 2^31 - 1 indeed (https://github.com/mongodb/mongo/blob/master/src/mongo/db/catalog/collection_options.cpp#L117-L119). I also go over the jira issues over history and found these mentions: https://jira.mongodb.org/browse/DOCS-795 https://jira.mongodb.org/browse/SERVER-5285 My colleague told me the documentation pointed that the limit is documented as 2^32-1 since 2.2 (https://docs.mongodb.com/v2.2/reference/limits/#Maximum-Number-of-Documents-in-a-Capped-Collection). I tried on 4.2 and 4.4 servers yet got the error message I mentioned above. If I'm not wrong there is an anomaly in documentation which you may want to fix or maybe clarify it for me if I misunderstand. Scope of changesImpact to Other DocsMVP (Work and Date)Resources (Scope or Design Docs, Invision, etc.) |
| Comments |
| Comment by Githook User [ 13/Dec/21 ] |
|
Author: {'name': 'jmd-mongo', 'email': '73852296+jmd-mongo@users.noreply.github.com', 'username': 'jmd-mongo'}Message: Docs 14345 update capped collection max size (#141)
|
| Comment by Andrew Feierabend (Inactive) [ 08/Apr/21 ] |
|
Thank you for filing this ticket! We'll take a look and address. |