Force refresh of db metadata for $merge

XMLWordPrintableJSON

    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2026-02-02
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The $merge requires to throw NamespaceNotFound when a db doesn't exist.
      In case the router is stale, the NamespaceNotFound wont' be thrown and the db will be created.
       It's currently unclear whether this creation might end up in correctness issues, this fix aims at maintaining the same behaviour.

      Extra context
      Implicit creation of the database is disallowed due to an old constraint of the server, where cluster writes would not create the db. I inferred this by this old conversation from the original commit of the test. This restriction seems to no longer exists, however, the NamespaceNotFound is a consequence of this forced refresh, required to establish some checks on the indexes.

      Whether throw NamespaceNotFound or not should therefore be deferred to SERVER-95749

            Assignee:
            Enrico Golfieri
            Reporter:
            Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: