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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • None
    • Replication

    Description

      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.

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: