[SERVER-74507] Gracefully handle empty time-series options in collMod Created: 01/Mar/23  Updated: 29/Oct/23  Resolved: 03/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0, 6.3.0-rc1

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.3
Sprint: Execution Team 2023-03-06
Participants:
Linked BF Score: 120

 Description   

With empty time-series options, collMod can fail but this isn't consistent with behaviour in v6.0 where we do nothing if timeseries options = {}. 

Here is where we return the error: https://github.com/10gen/mongo/blob/master/src/mongo/db/timeseries/timeseries_options.cpp#L117-L119 



 Comments   
Comment by Githook User [ 13/Mar/23 ]

Author:

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

Message: SERVER-74507 Gracefully handle empty time-series options in collMod

(cherry picked from commit 5035fde474f8aadfd50dc39d8a6e8619d97cb33f)
Branch: v6.3
https://github.com/mongodb/mongo/commit/28aaaddf78d62a02ee39fe29aa4f50c94bc38ec5

Comment by Githook User [ 03/Mar/23 ]

Author:

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

Message: SERVER-74507 Gracefully handle empty time-series options in collMod
Branch: master
https://github.com/mongodb/mongo/commit/5035fde474f8aadfd50dc39d8a6e8619d97cb33f

Comment by Fausto Leyva (Inactive) [ 01/Mar/23 ]

Also requesting backport to v6.3 where the issue was detected.

v6.0 does not error when empty time-series options are passed through to collMod.  

Generated at Thu Feb 08 06:27:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.