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

Drop collection command on the buckets namespace doesn't work as expected with view

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • 3

      After SERVER-90720 we correctly handle $out to time-series running on any shard. We add a check in the destructor to see if we have a time-series view that exists on the namespace to correctly clean up $out state. However, we noticed during development that this wasn't doing what we expected. The problem was noticed for concurrent view/collection creation in $out, but it applies to all drop commands with a buckets namespace.

      The bug is if we execute a drop command on the buckets namespace, and we have a view that doesn't match the buckets collection, we only drop the unrelated view and not the buckets collection. This issue affects customers running drop commands in general (see reproducible below), but also affects $out cleanup.

            Assignee:
            Unassigned Unassigned
            Reporter:
            gil.alon@mongodb.com Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: