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

TopologyCoordinatorImpl should report member state RS_PRIMARY, RS_REMOVED or RS_STARTUP2 after first call to updateConfig

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.7
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • ALL

      After setting a valid configuration on the topology coordinator via the updateConfig method, one of the following conditions should hold.

      1. _selfIndex == -1, and the reported state is RS_REMOVED
      2. _selfIndex == 0, the config contains exactly one member, and
        1. That member is electable, in which case the reported state should be RS_PRIMARY
        2. That member is not electable, in which case either the reported state is RS_ARBITER or RS_STARTUP2 based on the config's arbiter flag.
      3. The config contains many members, in which case the reported state is RS_STARTUP2

      If the reported state is RS_STARTUP2, the applier thread will eventually promote to RS_SECONDARY, possibly after an initial sync and/or a stint in RS_RECOVERY.

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: