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

Disallow manually creating a system.buckets.x collection

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Execution
    • 3

      If a user manually creates a system.buckets.x collection, change streams has no way of distinguishing between this and a genuine buckets collection automatically created by a timeseries view.

      Since we are implementing special handling for time series collections, this special handling will affect any system.buckets.x collections the user may have created, and result in incorrect change streams. We must prevent this case by ensuring this type of collection cannot exist.

      SERVER-63126 disallowed creating a view on system.buckets. Now we need to disallow manually creating any system.buckets.x collection.

      We also need to consider the case where there is already an existing system.buckets.x collection, manually created before this ticket was implemented. We should check for this situation and provide the user with a useful, actionable error message.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            jennifer.peshansky@mongodb.com Jennifer Peshansky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: