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

XMLWordPrintableJSON

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

      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:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Kaloian Manassiev
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: