[SERVER-64103]  Donor does not create ttl index when shard split feature flag is disabled Created: 01/Mar/22  Updated: 29/Oct/23  Resolved: 03/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Mathis Bessa Assignee: Mathis Bessa
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Server Serverless 2022-03-07
Participants:
Linked BF Score: 184

 Description   

When we added the tryForget command we added the creation of a TTLIndex for garbage collection. However in multiversion tests it can happen that one version of the ShardSplitDonorService which contains the feature will create the index and another version without the feature will not create the index. To solve this compatibility issue we should protect that index creation with the shard split feature flag and only create the index when that flag is enabled.

We should implement a logic similar to the tenant migration donor service code or simply use the feature flag check like we already do here.



 Comments   
Comment by Githook User [ 03/Mar/22 ]

Author:

{'name': 'mathisbessamdb', 'email': 'mathis.bessa@mongodb.com', 'username': 'mathisbessamdb'}

Message: SERVER-64103 adding feature flag check to prevent createStateDocumentTTLIndex from being called which causes multiversion tests to fail
Branch: master
https://github.com/mongodb/mongo/commit/eb5eaa886390cde3857c445360c84c9ce0f52d28

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