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

Wait for secondary state after stepdown command in multi_rs.js

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.4.15
    • Fix Version/s: 3.4.16, 4.2.6, 3.6.18, 4.0.17
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.2, v4.0, v3.6
    • Sprint:
      Repl 2018-06-18
    • Linked BF Score:
      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

            Assignee:
            backlog-server-repl Backlog - Replication Team
            Reporter:
            siyuan.zhou Siyuan Zhou
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: