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

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

    • Sharding 2021-06-14
    • 1

      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. 

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

              Created:
              Updated:
              Resolved: