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

Wait for secondary state after stepdown command in multi_rs.js

    • Replication
    • Fully Compatible
    • v4.2, v4.0, v3.6
    • Repl 2018-06-18
    • 19

      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".

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

              Created:
              Updated:
              Resolved: