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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.8, 4.0.2, 4.1.2
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Repl 2018-08-13
    • 16

      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.

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

              Created:
              Updated:
              Resolved: