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

Kill for step up should use ErrorCodes::InterruptedDueToReplStateChange

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • ALL
    • Repl 2024-03-18
    • 10

      We kill all retryable write sessions and invalidate them during step-up. There usually won't be any active ones, but there are some edge cases (e.g. just checked out the session but hadn't taken the global lock at stepdown time) which result in some. This kill is done with the default ErrorCodes::Interrupted; it should be done with ErrorCodes::InterruptedDueToReplStateChange

            Assignee:
            matthew.russotto@mongodb.com Matthew Russotto
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: