[SERVER-78751] $collStats should check for presence of time series options rather than relying on namespace checks Created: 06/Jul/23  Updated: 29/Oct/23  Resolved: 13/Jul/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.0-rc8, 5.0.20, 6.0.9

Type: Bug Priority: Major - P3
Reporter: Dan Larkin-York Assignee: Dan Larkin-York
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0, v6.0, v5.0
Steps To Reproduce:
  1. Create a collection "A".
  2. Create a collection "system.buckets.A".
  3. Run $collStats against "A" -> response will contain a bogus "timeseries" field, and stats will be reported for "system.buckets.A" rather than "A".
Sprint: Execution NAMR Team 2023-07-10, Execution NAMR Team 2023-07-24
Participants:
Linked BF Score: 105

 Description   

It appears that when collecting collection statistics for a collection A, we check to see if system.buckets.A exists, and if so, assume that A is the view associated with time series collection system.buckets.A. However, it's possible to create a regular collection on such a namespace, and for this to prevent us from properly collecting stats on A.



 Comments   
Comment by Githook User [ 28/Jul/23 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-78751 collStats should check for presence of time series options rather than relying on namespace checks

(cherry picked from commit e12c0052b9176ab45dce43a15f67b718976eb88d)
Branch: v5.0
https://github.com/mongodb/mongo/commit/f2a9402e26a0799302ae90ff24a9d1ddcb32ccdf

Comment by Githook User [ 26/Jul/23 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-78751 collStats should check for presence of time series options rather than relying on namespace checks

(cherry picked from commit e12c0052b9176ab45dce43a15f67b718976eb88d)
Branch: v6.0
https://github.com/mongodb/mongo/commit/806d10c50ff037a00425443312d468bd9bf6a26a

Comment by Githook User [ 14/Jul/23 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-78751 collStats should check for presence of time series options rather than relying on namespace checks

(cherry picked from commit e12c0052b9176ab45dce43a15f67b718976eb88d)
Branch: v7.0
https://github.com/mongodb/mongo/commit/8b01fb5908b67a72c45b42e64a1b26ed06c0ed95

Comment by Githook User [ 13/Jul/23 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-78751 collStats should check for presence of time series options rather than relying on namespace checks
Branch: master
https://github.com/mongodb/mongo/commit/e12c0052b9176ab45dce43a15f67b718976eb88d

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