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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.6.8, 4.0.2, 4.1.2
    • None
    • Replication
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Repl 2018-08-13
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: