[SERVER-59420] Ensure Time Series collections are supported as part of API v1 Created: 18/Aug/21  Updated: 29/Oct/23  Resolved: 13/Sep/21

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

Type: Task Priority: Minor - P4
Reporter: Michael Gargiulo Assignee: Rui Liu
Resolution: Fixed Votes: 0
Labels: query-director-triage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: QE 2021-09-20
Participants:

 Description   
Summary:

As part of continuous delivery we should look to ensure that timeseries collections are supported as part of v1 of the stable API when apiStrict=True prior to the release of 5.1.  

Current State:

Currently, a user can create and insert into a timeseries collections with apiStrict=True. However, a user cannot currently query a timeseries collection in this state due to _$internalUnpackBucket not being supported with the implementation of SERVER-58076

pymongo.errors.OperationFailure: BSON field 'aggregate.runtimeConstants' is not allowed with apiStrict:true., full error: {u'codeName': u'APIStrictError', u'code': 323, u'ok': 0.0, u'errmsg': u"BSON field 'aggregate.runtimeConstants' is not allowed with apiStrict:true."}

Desired State:
  • Timeseries collections can be queried when apiStrict=True
    • Since _$internalUnpackBucket is not an intended human writable stage it should be included as part of the API v1, but disallowed for users to use to the best of our ability. 
Notes: 
  • This ticket does not include any other stages/operators included as part of the Time Series Init such as $setWindowFields which are not currently part API v1.
  • The scope of this ticket is to ensure timeseries collections can be queried and work in the same fashion as 5.0 which may include any work for view support in API v1. 


 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 13/Sep/21 ]

Author:

{'name': 'Rui Liu', 'email': 'rui.liu@mongodb.com', 'username': 'lriuui0x0'}

Message: SERVER-59420 Allow querying time-series collection as part of API V1 when API strict set to true
Branch: master
https://github.com/mongodb/mongo/commit/249eb6dcf0d315cd0b8a625289bac79d2529edd2

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