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

Race condition between addShard and ShardRegistry reload

    • Fully Compatible
    • ALL
    • 0

      If one thread starts reloading the shard registry, all other calls to reload will block waiting for it to complete. If addShard runs concurrently with the reload, it is possible that the initial reload will not see the newly added shard and the reload initiated by addShard will do nothing, assuming that the first reload saw the latest state.

      This is a race condition, which can cause shardCollection calls with sharded key to not use newly added shards.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: