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

Remove CollectionCatalog usage in BucketCatalog for timeseries stats

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • None
    • None
    • None
    • Storage Execution
    • Fully Compatible
    • Execution Team 2023-11-13

    Description

      Discussion from Slack:

      I do agree fetching the collection at that layer feels off. I think we have two potential options in the short term:

      • Pass the Collection& into all these top-level methods and thread it through, rather than the opCtx.
      • Keep some pointer to the relevant collection stats alongside the ExecutionStats for the collection, which I think would only require threading the collection instance through a few top-level calls (maybe just tryInsert/insert?) to be able to initialize the pointer the first time we deal with a given namespace. (Preferred implementation)

      Attachments

        Activity

          People

            gregory.wlodarek@mongodb.com Gregory Wlodarek
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: