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

for sharded read with empty query, target only shards that own data for the collection instead of all shards

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc0
    • Affects Version/s: 3.5.9
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2017-07-31, Sharding 2017-09-11, Sharding 2017-10-02

      We should fix the regression introduced by the scatterGather interface where, in the absence of a passed-in query, currently all shards are targeted for requests on sharded collections.

      Instead, scatterGather() should be changed to only target shards that actually own data for the collection by assuming an empty query and using ChunkManager::getShardIdsForQuery.

      In addition, the following commands should be changed to be broadcast and unversioned:

      • createIndexes
      • dropIndex
      • reIndex
      • collMod

            Assignee:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: