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

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

      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.

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

              Created:
              Updated:
              Resolved: