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

Make sure that withTemporaryOperationContext throw an error if the node is no longer a primary

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL
    • v5.0, v4.4
    • 142

    Description

      withTemporaryOperationContext is used to submit range deletion tasks, but it can run after the node is no longer a primary and when that occurs the opCtx that it creates will not get interrupted by stepdown. Therefore, we should check after creating the opCtx that the node is still a primary before calling callable.

      Attachments

        Issue Links

          Activity

            People

              kshitij.gupta@mongodb.com Kshitij Gupta
              cheahuychou.mao@mongodb.com Cheahuychou Mao
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: