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

Wait for secondary state after stepdown command in multi_rs.js

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.4.15
    • 3.4.16, 4.2.6, 3.6.18, 4.0.17
    • Replication
    • None
    • Replication
    • Fully Compatible
    • v4.2, v4.0, v3.6
    • Repl 2018-06-18
    • 19

    Description

      SERVER-31265 fixes the race of closing connection for new connections in 3.6 and beyond, but wasn't backported to 3.4. That causes the new connection for "ismaster" to be closed after sending stepdown command in multi_rs.js on 3.4. A workaround is to wait for "secondary" state after sending stepdown command but before calling "reconnect" which sends an "ismaster".

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: