[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: |
|
||||||||
| 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: (cherry picked from commit 5035fde474f8aadfd50dc39d8a6e8619d97cb33f) |
| Comment by Githook User [ 03/Mar/23 ] |
|
Author: {'name': 'Faustoleyva54', 'email': 'fausto.leyva@mongodb.com', 'username': 'Faustoleyva54'}Message: |
| 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. |