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

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

    XMLWordPrintableJSON

Details

    • Sharding 2021-06-14
    • 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

              junhson.jean-baptiste@mongodb.com Junhson Jean-Baptiste (Inactive)
              blake.oler@mongodb.com Blake Oler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: