Remove collection locks from sharding index catalog observers

XMLWordPrintableJSON

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

      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.

              Assignee:
              Marcos José Grillo Ramirez
              Reporter:
              Marcos José Grillo Ramirez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: