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

Include collection type with `create` events.

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: Change streams
    • None
    • Query Execution
    • Minor Change
    • v8.0, v7.0, v6.0
    • QE 2024-09-02, QE 2024-09-16, QE 2024-09-30

      Currently `create` events offer no explicit indication of the type of the namespace that’s been created. Clients have to parse it heuristically:

      1. If there’s a collection UUID: type=collection.
      2. Otherwise, if viewOn is a system.buckets collection: type=timeseries.
      3. Otherwise, type=view.

      This means clients have to know about all collection types. So were there to be some new collection type, the logic above would process it as a view. Moreover, a client that doesn’t want to care about time-series collections nonetheless has to filter them out explicitly.

      It would seem better all around to add a “type” field to the event.

            Assignee:
            jan.steemann@mongodb.com Jan Steemann
            Reporter:
            felipe.gasper@mongodb.com Felipe Gasper
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: