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

Remove collection locks from sharding index catalog observers

    XMLWordPrintableJSON

Details

    • Sharding EMEA
    • Fully Compatible
    • Sharding EMEA 2023-02-06
    • 151

    Description

      Currently in the sharding's op observer when handling sharding's index catalog we're holding collection locks inside the onCommit's handler, this could cause the following behavior: if the OperationContext is interrupted, then attempting to acquire a lock would throw an exception and lead to a server crash because onCommit() handlers are noexcept.

      We should move the collection acquiring, like for example, to the sharding index catalog ddl util inside each writeConflictRetry in resource id order.

      Attachments

        Activity

          People

            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: