Take only a DB IX lock in resharding::data_copy::ensureCollectionDropped

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 8.3.0-rc0, 8.2.0
    • Component/s: None
    • Cluster Scalability
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      resharding::data_copy::ensureCollectionDropped is currently taking a DB X lock. Since it only needs to drop a given collection, we can downgrade this lock to a DB IX lock instead, to help both resharding as well as other operations to finish faster.

       

      Note that taking a DB X lock was a change by SERVER-104155 so this only affects v8.2+.

            Assignee:
            Unassigned
            Reporter:
            Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: