[SERVER-60956] collMod command allows converting index on capped collection to TTL, leading to invariant failure Created: 23/Oct/21  Updated: 29/Oct/23  Resolved: 10/Nov/21

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 5.1.0-rc0
Fix Version/s: 5.2.0, 5.1.2

Type: Bug Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Gabriel Marks
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
is caused by SERVER-13938 Allow TTLMonitor to use existing inde... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.1
Sprint: Execution Team 2021-11-15
Participants:

 Description   

The changes from 2b7d116 as part of SERVER-13938 enabled the collMod command to convert a non-TTL index into a TTL index. The conversion must be disallowed for capped collections to avoid triggering this invariant in the TTL monitor.



 Comments   
Comment by Githook User [ 01/Dec/21 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-60956 Check edge case for collmod

(cherry picked from commit 8525925453c9a524f7d5c380132ec36b9eb5061c)
Branch: v5.1
https://github.com/mongodb/mongo/commit/6446665379a49e4c6b5b4ad75703822f3fa9db89

Comment by Githook User [ 09/Nov/21 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-60956 Check edge case for collmod
Branch: master
https://github.com/mongodb/mongo/commit/8525925453c9a524f7d5c380132ec36b9eb5061c

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