[SERVER-60492] Support clustering on capped collections by time-based expiry Created: 06/Oct/21  Updated: 29/Oct/23  Resolved: 08/Nov/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0

Type: Task Priority: Major - P3
Reporter: Louis Williams Assignee: Josef Ahmad
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-60129 Create a passthrough suite that defau... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-11-01, Execution Team 2021-11-15
Participants:

 Description   

Support capped, clustered collections. Accept an expireAfterSeconds option to create a capped collection when also created with the clusteredIndex option.

Ensure that if this collection is not explicitly replicated that it does not serialize writes. It should explicitly replicate deletes like TTL like regular capped collections.

Also ensure a clustered, capped collection is tailable, and only with a readConcern: majority cursor.



 Comments   
Comment by Josef Ahmad [ 16/Jun/22 ]

Oh I see your point now. I've filed DOCS-15419 to publicly document the limitation. Thanks!

Comment by Lingzhi Deng [ 16/Jun/22 ]

Thank you josef.ahmad@mongodb.com. But if an end user tries to create a clustered capped collection, they would get an error but our documentation doesn't seem to say anything about clustered + capped. But maybe we think the error message returned by the Server is good enough? So that's probably fine then.

Comment by Josef Ahmad [ 16/Jun/22 ]

lingzhi.deng@mongodb.com no need for public-facing documentation because per SERVER-61278 we've made capped clustered collections only available internally. We've documented clustered capped collections for internal operation in this arch guide section.

Comment by Lingzhi Deng [ 16/Jun/22 ]

josef.ahmad@mongodb.com louis.williams@mongodb.com Does this need a DOCS ticket? I don't see we have document for clustered capped collections.

Comment by Githook User [ 08/Nov/21 ]

Author:

{'name': 'Josef Ahmad', 'email': 'josef.ahmad@mongodb.com', 'username': 'josefahmad'}

Message: SERVER-60492 Support clustered capped collections with TTL expiration
Branch: master
https://github.com/mongodb/mongo/commit/36c81b01cbc0bdddd88e7649ec7302a6bfd8d354

Generated at Thu Feb 08 05:49:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.