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

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v5.0, v4.4
    • Linked BF Score:
      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

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

                Dates

                Created:
                Updated:
                Resolved: