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

CachedCollectionProperties::getCollectionProperties accesses the collection with only DB IS lock

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.9, 3.6.0-rc0
    • Component/s: Replication
    • Replication
    • ALL

      This code in CachedCollectionProperties::getCollectionPropertiesImpl accesses the collection while only holding a database IS lock.

      While in practice this may work, because dropping a collection takes database X lock, technically the collection object is not stable without some form of collection lock, which in this case should be IS.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: