Ensure transactions not holding RSTL are killed on step up / step down

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Incomplete
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In SERVER-50486, we discovered a race where a primary may step down, attempt to call invokeWithSessionCheckedOut in a user thread, and eventually hit a MONGO_UNREACHABLE invariant due to a race.

      SERVER-50486 addressed this by setting the setAlwaysInterruptAtStepDownOrUp flag on the opCtx . It seems like this issue is still occurring, we should investigate more into why a user thread was not killed upon step down.

            Assignee:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Xuerui Fa
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: