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

Convert resharding document deletion to use PersistentTaskStore instead of creating a WriteUnitOfWork

    XMLWordPrintable

    Details

    • Sprint:
      Sharding 2021-06-14
    • Story Points:
      1

      Description

      We changed the document deletion to use a manual WriteUnitOfWork, since we needed to leverage the onCommit handler to fulfill the completion promise. This was a temporary solution to SERVER-54460. However, SERVER-54460 has been solved by instead adding setAlwaysInterruptAtStepDownOrUp to relevant opCtxs. We no longer need to onCommit handler.

      As code cleanup we can convert resharding document deletion back to using the PersistentTaskStore, which uses fewer lines of code. 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              junhson.jean-baptiste Junhson Jean-Baptiste
              Reporter:
              blake.oler Blake Oler
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: