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

Race between concurrent stepdowns and applying transaction oplog entry

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.2, 5.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v5.0, v4.4, v4.2
    • Sprint:
      Repl 2021-06-28, Repl 2021-07-12
    • Case:
    • Linked BF Score:
      120

      Description

      If a node is stepping down in multiple threads at once, one thread can lag behind the other stepdown thread and still be running when the node starts applying oplog entries as a secondary. In this case, if the remaining stepdown thread still has ScopedBlockSessionCheckouts in scope, it will block checking out sessions, which could cause us to fail to apply a commitTransaction oplog entry, ultimately triggering this fassert.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              wenbin.zhu Wenbin Zhu
              Reporter:
              samy.lanka Samyukta Lanka
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: