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

AutoGetCollectionForRead should release secondary collection locks if any secondary namespace is a view or sharded, which is not supported

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • 3

      AutoGetCollectionForRead takes locks via its underlying AutoGetCollection, then checks the secondary namespaces and sets the value returned by isAnySecondaryNamespaceAViewOrSharded(), which indicates whether access to a secondary namespace is safe or not. However, the locks for the secondary namespaces are still held, which supports access in our low level systems (any lock invariants would pass). We should unlock the secondary namespaces.

            Assignee:
            backlog-server-catalog-and-routing [DO NOT USE] Backlog - Catalog and Routing
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: