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

Better error message for timeseries assertion

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2022-05-30
    • 57

    Description

      Currently, there are 3 places that says "Namespace x.y is a timeseries collection".

      https://github.com/10gen/mongo/blob/883238375b56d7a4a11f48583a5f79a5f7192d87/src/mongo/db/catalog_raii.cpp#L303
      https://github.com/10gen/mongo/blob/883238375b56d7a4a11f48583a5f79a5f7192d87/src/mongo/db/catalog_raii.cpp#L434
      https://github.com/10gen/mongo/blob/883238375b56d7a4a11f48583a5f79a5f7192d87/src/mongo/db/commands/run_aggregate.cpp#L765

      Suggestion:

      • Reword error in catalog_raii as "Taking x.y lock for timeseries not allowed"
      • Reword error in run_aggregate as "Cannot run aggregation on timeseries ns x.y"

      Attachments

        Activity

          People

            fausto.leyva@mongodb.com Fausto Leyva (Inactive)
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: