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

Race in config.version intialization

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.3.4
    • Fix Version/s: 3.2.10, 3.3.5
    • Component/s: Sharding
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      Sharding 13 (04/22/16)
    • Linked BF Score:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: