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

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: