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

Handle direct connections for implicit creation path

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • v8.0
    • Sharding EMEA 2023-10-30

      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.

            Assignee:
            backlog-server-catalog-and-routing [DO NOT USE] Backlog - Catalog and Routing
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: