[SERVER-72686] Add support for $collStats agg stage on timeseries collection Created: 10/Jan/23  Updated: 29/Oct/23  Resolved: 17/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 6.0.6, 5.0.18, 7.0.0-rc1, 6.3.2

Type: Bug Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Adi Agrawal
Resolution: Fixed Votes: 0
Labels: read-only-views
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File collstats-timeseries-repro.patch    
Issue Links:
Backports
Problem/Incident
Related
is related to SERVER-75416 Support $planCacheStats aggregation s... Backlog
is related to SERVER-57589 Enhance testing for cluster collStats... Closed
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0, v6.3, v6.0, v5.0
Steps To Reproduce:

Apply collstats-timeseries-repro.patch on top of r6.3.0-alpha-1691-gf2a95d46b1d and run:

resmoke.py --suite=sharding --mongodSetParameters="{logComponentVerbosity: {sharding: 3, command: 3}}" jstests/sharding/timeseries_cluster_collstats.js

Sprint: QE 2023-02-06, QE 2023-02-20, QE 2023-03-06, QE 2023-03-20, QE 2023-04-03, QE 2023-04-17, QE 2023-05-01
Participants:

 Description   

In SERVER-57589 we added support for collStats command on timeseries collection. On the other hand the $collStats aggregation stage does not fully support timeseries. In particular if we execute

[{'$collStats': {'storageStats': {}}}]

on a timeseries collection we will  get a StaleConfig error.



 Comments   
Comment by Githook User [ 26/Apr/23 ]

Author:

{'name': 'Adityavardhan Agrawal', 'email': 'adi.agrawal@mongodb.com', 'username': 'Adityav369'}

Message: SERVER-72686: Support $collStats in agg pipeline for timeseries collections

(cherry picked from commit 01beeb4c2895153914158b1b5691c8c8cd60356a)
Branch: v7.0
https://github.com/mongodb/mongo/commit/acac90ad255a741184839dfbd6e62418166df514

Comment by Githook User [ 26/Apr/23 ]

Author:

{'name': 'Adityavardhan Agrawal', 'email': 'adi.agrawal@mongodb.com', 'username': 'Adityav369'}

Message: SERVER-72686: Support collStats in agg pipeline for timeseries collections

(cherry picked from commit 01beeb4c2895153914158b1b5691c8c8cd60356a)
Branch: v6.3
https://github.com/mongodb/mongo/commit/2c6bff296271311a380987845c24103f1b90c175

Comment by Githook User [ 25/Apr/23 ]

Author:

{'name': 'Adityavardhan Agrawal', 'email': 'adi.agrawal@mongodb.com', 'username': 'Adityav369'}

Message: SERVER-72686: Support collstats in agg pipeline for timeseries collection

(cherry picked from commit 01beeb4c2895153914158b1b5691c8c8cd60356a)
Branch: v5.0
https://github.com/mongodb/mongo/commit/3d792d0d614700dae3d6bac22e40162f51914d52

Comment by Githook User [ 25/Apr/23 ]

Author:

{'name': 'Adityavardhan Agrawal', 'email': 'adi.agrawal@mongodb.com', 'username': 'Adityav369'}

Message: SERVER-72686: Support collstats in agg pipeline for timeseries collections (cherry picked from commit 01beeb4c2895153914158b1b5691c8c8cd60356a)
Branch: v6.0
https://github.com/mongodb/mongo/commit/7f1789cbd48a0509c4770bc4c719cfdc88b3d5b9

Comment by Githook User [ 17/Apr/23 ]

Author:

{'name': 'Adityavardhan Agrawal', 'email': 'adi.agrawal@mongodb.com', 'username': 'Adityav369'}

Message: SERVER-72686: Support $collStats in agg pipeline for timeseries collections
Branch: master
https://github.com/mongodb/mongo/commit/01beeb4c2895153914158b1b5691c8c8cd60356a

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