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

ReplicationCoordinatorImpl::fillIsMasterForReplSet should return isMaster:false while in shutdown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.8, 4.0.2, 4.1.2
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6
    • Sprint:
      Repl 2018-08-13
    • Linked BF Score:
      16

      Description

      Clients use the isMaster field here to determine whether or not to direct writes to the node. When we're technically "master" but we can't accept writes (i.e. when in drain mode), we claim not to be master. We should do the same while shutting down.

      This affects retryable writes, in that a write interrupted due to shutdown may immediately re-try on the same node if it still claims to be master.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              spencer Spencer Brody (Inactive)
              Reporter:
              matthew.russotto Matthew Russotto
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: