[SERVER-69223] Resizing capped collection does not work Created: 29/Aug/22 Updated: 29/Aug/22 Resolved: 29/Aug/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 6.0.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Teemu Lankila | Assignee: | Louis Williams |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Operating System: | ALL | ||||||||||||
| Steps To Reproduce: | Follow instructions from documentation. |
||||||||||||
| Sprint: | Execution Team 2022-09-05 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
When trying to increase capped collection size from mongosh as documented: https://www.mongodb.com/docs/manual/core/capped-collections/#change-a-capped-collection-s-size
An error happens: MongoServerError: Cannot change the size limits of a capped collection. |
| Comments |
| Comment by Louis Williams [ 29/Aug/22 ] |
|
Great, I'm glad that this resolved your issue! |
| Comment by Teemu Lankila [ 29/Aug/22 ] |
|
I verified this to be working after setting the featureCompatibilityVersion to 6.0 Command responded with ok and the collection stats() now show increased maxSize |
| Comment by Louis Williams [ 29/Aug/22 ] |
|
Hi teemu.lankila@ioliving.com. In order to resize a capped collection in 6.0, you must also upgrade your featureCompatibilityVersion to 6.0. This appears to be missing from the documentation, so I have requested a change. Please let me know if this resolves your issue. |