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

Fix initialization of shard cluster type mongod servers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.9.0-alpha0
    • Sharding
    • 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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: