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

Check all ways that an opCtx will be interrupted for step up and step down

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.1.0-rc0
    • None
    • None
    • Fully Compatible
    • Repl 2021-06-28, Repl 2021-07-12

    Description

      We currently sometimes check if the global lock was taken in a mode conflicting with writes to ensure that an operation will be killed during step up or step down (like here). However, that's no longer the only situation that we kill an opCtx anymore, so we should update those checks to call opCtx->shouldAlwaysInterruptAtStepDownOrUp() as well.

      Attachments

        Issue Links

          Activity

            People

              xuerui.fa@mongodb.com Xuerui Fa
              samy.lanka@mongodb.com Samyukta Lanka
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: