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

Handle direct connections for implicit creation path

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Catalog and Routing
    • Sharding EMEA 2023-10-30

    Description

      In SERVER-80372, the checks for taking the ScopedAllowImplicitCollectionCreate_UNSAFE are using ShardingState::get(opCtx)->isComingFromRouter to determine whether a connection is a direct shard connection and so should be allowed to create a local (untracked) collection.

      This isn't a good way to check for direct connections because it will also return false during ddl operations, for example. This ticket is to update the check in the scoped acquisitions to correctly check for direct connections.

      Attachments

        Activity

          People

            backlog-server-catalog-and-routing Backlog - Catalog and Routing
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: