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

Remove call to getAllChunkRanges as part of getShardIdsForRange

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2024-10-28, CAR Team 2024-11-11, CAR Team 2024-11-25, CAR Team 2024-12-23
    • 1

      This call is copying the entire chunk map which can contain thousands or even millions of chunks. This can take a very long time, and so having this as part of the getShardIdsForRange function is very dangerous as it can introduce huge performance hits if used incorrectly.

      This is also used in very few places for analyzeShardKey, so we should separate this logic out to make the router paths more resilient and less risky.

            Assignee:
            igor.praznik@mongodb.com Igor Praznik
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: