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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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 Brody (Inactive)
            Reporter:
            Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: