[SERVER-66266] Better error message for timeseries assertion Created: 05/May/22  Updated: 29/Oct/23  Resolved: 19/May/22

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

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

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-05-30
Participants:
Linked BF Score: 57

 Description   

Currently, there are 3 places that says "Namespace x.y is a timeseries collection".

https://github.com/10gen/mongo/blob/883238375b56d7a4a11f48583a5f79a5f7192d87/src/mongo/db/catalog_raii.cpp#L303
https://github.com/10gen/mongo/blob/883238375b56d7a4a11f48583a5f79a5f7192d87/src/mongo/db/catalog_raii.cpp#L434
https://github.com/10gen/mongo/blob/883238375b56d7a4a11f48583a5f79a5f7192d87/src/mongo/db/commands/run_aggregate.cpp#L765

Suggestion:

  • Reword error in catalog_raii as "Taking x.y lock for timeseries not allowed"
  • Reword error in run_aggregate as "Cannot run aggregation on timeseries ns x.y"


 Comments   
Comment by Githook User [ 17/May/22 ]

Author:

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

Message: SERVER-66266 Better error message for timeseries assertion
Branch: master
https://github.com/mongodb/mongo/commit/d79ef77d92e37a18099eef6a01418efe43f4f2a7

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