[SERVER-84331] createCollection command for capped collections on sharded cluster requires the "size" field but the same command on replica set it doesn't Created: 20/Dec/23 Updated: 08/Feb/24 |
|
| Status: | Needs Merge |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Cheahuychou Mao | Assignee: | Gregory Noma |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Storage Execution
|
||||||||||||
| Backport Requested: |
v7.3, v7.0, v6.0, v5.0
|
||||||||||||
| Sprint: | Execution Team 2024-02-05, Execution Team 2024-02-19 | ||||||||||||
| Participants: | |||||||||||||
| Comments |
| Comment by Githook User [ 08/Feb/24 ] |
|
Author: {'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}Message: SERVER-84331 Consistently reject options incompatible with clustered (#18735) GitOrigin-RevId: 83495ae7b496ece600030941b6853c1346ee418d |
| Comment by Gregory Noma [ 02/Feb/24 ] |
|
The capped options has different requirements on clustered collections, compared to non-clustered collections. For one, it is only allowed when test commands are enabled. Further, the size and max fields are not allowed, while the expireAfterSeconds field is required. See these assertions. |