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

Make sure read transactions during primary stepdown don't block stepdown

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Replication

      Stepdown kills all the running operations, sets the _canAcceptNonLocalWrites to false under the global lock, and waits for nodes to catch up without holding the global lock. When stepdown is signaled to check its stepdown condition, it re-acquires the global X lock and releases it afterwards.

      In 4.0 we don't allow starting a transaction if we can't accept writes, thanks to SERVER-34557, so read transactions during primary stepdown are not allowed so they won't block the stepdown which needs the exclusive global lock. If we start allowing transactions on secondaries then we need to make sure the read transactions don't block stepdown's global lock request during the waiting.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: