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

Race in config.version intialization

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.3.4
    • 3.2.10, 3.3.5
    • Sharding
    • Fully Compatible
    • ALL
    • Sharding 13 (04/22/16)
    • 0

    Description

      Mongos currently assumes that if it can't find the config.version document and the config.shards is not empty, then the config server metadata is pre v2.4. The problem is that mongos queries the config.version first, and the config.shards later. Which means that another mongos could have inserted the config.version document and populated the config.shards in between the config.version and config.shards query (or alternatively, the secondary would have catched up to that point).

      Attachments

        Activity

          People

            randolph@mongodb.com Randolph Tan
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: