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

Fix initialization of shard cluster type mongod servers

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0-alpha0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Hide

      It happens from time to time in case during the time window in which replica set monitor is already initialized and topology change listerners are still not registered a topology change message arrives.

      Show
      It happens from time to time in case during the time window in which replica set monitor is already initialized and topology change listerners are still not registered a topology change message arrives.
    • Sharding 2020-11-30
    • 10

      When initializing mongod process of shard cluster type, initialize properly its components so topology change messages do not arrive before all topology listeners have been properly added to the system. A solution is to swap first two instructions in https://github.com/mongodb/mongo/blob/7a6078c14ec31052e5109629a78c988ca417b793/src/mongo/db/s/sharding_initialization_mongod.cpp#L261

            Assignee:
            jaume.moragues@mongodb.com Jaume Moragues (Inactive)
            Reporter:
            jaume.moragues@mongodb.com Jaume Moragues (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: