[SERVER-56124] Provide an alias to $_internalUnpackBucket for Atlas Online Archive Created: 15/Apr/21  Updated: 29/Oct/23  Resolved: 17/May/21

Status: Closed
Project: Core Server
Component/s: Query Execution
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Eric Cox (Inactive) Assignee: Ethan Zhang (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Gantt Dependency
has to be done before SERVER-56946 Clean up the hardcoded bucketMaxSpanS... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query Execution 2021-05-17, Query Execution 2021-05-31
Participants:

 Description   

Atlas OA may rely on running queries directly on the system.buckets.X collection to archive and delete buckets. Once buckets are fetched they want to use  $_internalUnpackBucket to extract the measurements.

More and more arguments will be added to $_internalUnpackBucket due to rewrite philosophies around being able to serialize an "AST" node for transport from mongos <-> mongod. We don't want to expose all the possible knobs of $_internalUnpackBucket as part of a stable API for OA's usecase.

It was agreed during a meeting with QO that we would provide a sugared alias to $_internalUnpackBucket that only exposes a minimal set of parameters in the parser for them to be able to unpack buckets for their archive format. That set of params should be just the metaField and timeField since they do not require measurement field projection functionality.

Other requirements for this alias include:

  • Provide internal documentation for OA.
  • It should have a stable api so we need to implement tests that will signal that we have broken the stage for OA.
  • This should not function in API strict mode to prevent external users with api versioning access to this stage.


 Comments   
Comment by Ethan Zhang (Inactive) [ 17/May/21 ]

Side note: the name of the new alias stage is "$_unpackBucket"

Comment by Githook User [ 17/May/21 ]

Author:

{'name': 'Ethan Zhang', 'email': 'ethan.zhang@mongodb.com', 'username': 'yzhang1991'}

Message: SERVER-56124 Provide an alias to $_internalUnpackBucket for Atlas Online Archive
Branch: master
https://github.com/mongodb/mongo/commit/12aad79fda1a0a21f8a9a5022edf3b0fd17e2513

Comment by David Storch [ 07/May/21 ]

CC yuta.arai 

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