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

Improve error message for unsupported operations on time-series collections

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Catalog, Storage
    • None
    • Fully Compatible
    • Execution Team 2021-02-08

      Two cases that I've run into:

      • create the same time-series collection twice: "A view already exists. NS: w16b10000mdb.a" should be come "A collection already exists" or "a time-series collection already exists".
      • attempting to remove or update a measurement, yields: Namespace w16b10000mdb.a is a view, not a collection. It should instead mention that the operation is not supported on time-series collections.

      This second case is handled in catalog_raii.cpp and will probably address a large number of different situations. Grepping "is a view, not a collection" also shows an occurrence in run_aggregate.cpp, so that should be changed as well.

            Assignee:
            dan.larkin-york@mongodb.com Dan Larkin-York
            Reporter:
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: