[SERVER-63876] [5.0] Secondary nodes crash when applying collMod with `index.expireAfterSeconds` option Created: 22/Feb/22  Updated: 29/Oct/23  Resolved: 25/Feb/22

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

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

Issue Links:
Depends
Related
related to SERVER-13938 Allow TTLMonitor to use existing inde... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-03-07
Participants:
Linked BF Score: 127

 Description   

When adding the feature to allow converting an index to ttl in 5.1, we didn't have a guard for earlier versions. We should try to enable the 5.0 secondaries to apply the command while disable the 5.0 primaries to run it.



 Comments   
Comment by Githook User [ 25/Feb/22 ]

Author:

{'name': 'Yuhong Zhang', 'email': '34732434+YuhongZhang98@users.noreply.github.com', 'username': 'YuhongZhang98'}

Message: SERVER-63876 Add multiversion test to make sure collMod ttl works on 5.0 secondaries
Branch: master
https://github.com/mongodb/mongo/commit/d6367f3a32a3d5e2c88762992a03da3a691aeb51

Comment by Githook User [ 24/Feb/22 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}

Message: SERVER-63876 Allow secondaries to convert collections to ttl
Branch: v5.0
https://github.com/mongodb/mongo/commit/3978b7d41a049df258fed4c81369a18c584ac0ce

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