[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:
Backports
Related
is related to SERVER-83078 Add jscore passthrough testing for co... Closed
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
Branch: master
https://github.com/mongodb/mongo/commit/cba91b18441c069c4cc8e649a890441a3de2ede7

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.

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