[SERVER-61545] Remove feature compatibility version casing around TTL indexes on capped collections Created: 16/Nov/21  Updated: 29/Oct/23  Resolved: 13/Jul/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 6.0 Desired
Fix Version/s: 6.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Gabriel Marks Assignee: Fausto Leyva (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-26287 createIndexes should confirm that ind... Closed
is depended on by SERVER-66728 Remove Old 5.x FCV Constants Blocked
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-07-25
Participants:

 Description   

Before version 5.2, TTL indexes were allowed to be created on capped collections. However, due to SERVER-26287, this is fixed in versions 5.2 and on. There is casing in the server code and in the testing around the case where we are running a version where this is fixed, but the feature compatibility version is lower than 5.2, in which case we should allow TTL indexes to be created on capped collections (for multiversion cluster purposes). However, when 6.0 is LTS, there should be no further need for this, since 6.0 nodes will never have to talk to nodes with version less than 5.2. Specific pieces of code which can be removed:

The check for FCV and comment here: https://github.com/10gen/mongo/blob/80137862fdf4e2f65e0d822abe8d70da63854d3d/src/mongo/db/catalog/index_catalog_impl.cpp#L331-L339

This entire test:

https://github.com/10gen/mongo/blob/80137862fdf4e2f65e0d822abe8d70da63854d3d/jstests/multiVersion/ttl_index_capped_collection.js

 



 Comments   
Comment by Githook User [ 12/Jul/22 ]

Author:

{'name': 'Faustoleyva54', 'email': 'fausto.leyva@mongodb.com', 'username': 'Faustoleyva54'}

Message: SERVER-61545 Remove feature compatibility version casing around TTL indexes on capped collections
Branch: master
https://github.com/mongodb/mongo/commit/873861d772dfdee7bf7d6b98f0657d59779c9e88

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