Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-78751

$collStats should check for presence of time series options rather than relying on namespace checks

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc8, 5.0.20, 6.0.9
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v7.0, v6.0, v5.0
    • Hide
      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".
      Show
      Create a collection "A". Create a collection "system.buckets.A". Run $collStats against "A" -> response will contain a bogus "timeseries" field, and stats will be reported for "system.buckets.A" rather than "A".
    • Execution NAMR Team 2023-07-10, Execution NAMR Team 2023-07-24
    • 105

      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.

            Assignee:
            dan.larkin-york@mongodb.com Dan Larkin-York
            Reporter:
            dan.larkin-york@mongodb.com Dan Larkin-York
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: