Race between concurrent stepdowns and applying transaction oplog entry

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.0.2, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.0, v4.4, v4.2
    • Repl 2021-06-28, Repl 2021-07-12
    • 120
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Wenbin Zhu
              Reporter:
              Samyukta Lanka
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: