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

Prevent "invalid view definition" error during AutoGetCollection for a non-existing collection

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • ALL

      Currently, AutoGetCollection for an unknown namespace will fail with InvalidView even if there is no view for the namespace we are looking up. In a sharded collection, this means that commands sent to shards that do not know about a collection will fail for this reason.

      SERVER-73984 aims to make setAllowMigrations send flushRoutingTableCacheUpdates to all shards (even if they don't have chunks for the collection). With the current AutoGetCollection behavior, this would mean that in a database with an invalid view, all ddl operations in that database would fail with InvalidView even when the ddl operation has nothing to do with the invalid view.

      If possible, we should implement something similar to SERVER-42373 to allow AutoGetCollection to succeed if the namespace is not a view.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: