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

Race in config.version intialization

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.10, 3.3.5
    • Affects Version/s: 3.3.4
    • Component/s: Sharding
    • Labels:
    • Fully Compatible
    • ALL
    • Sharding 13 (04/22/16)
    • 0

      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).

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

              Created:
              Updated:
              Resolved: