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

Prevent CollectionRoutingInfoTargeter from iterating all chunk ranges during update and delete

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: 7.0.0, 8.1.0-rc0, 8.0.0
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v8.0, v7.0
    • Cluster Scalability 2024-10-14
    • 0

      The _targetQuery function always passes in a valid QueryTargetingInfo object. This means we are always passing a valid set to getShardIdsForRange and whenever we target all shard ids, we will insert every chunk into an ordered set.

      The _targetQuery function should instead pass a nullptr if chunkRanges is also nullptr to skip this work in cases where its result won't even be used.

            Assignee:
            israel.hsu@mongodb.com Israel Hsu
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: