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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Catalog and Routing
    • 3

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: