Remove call to getAllChunkRanges as part of getShardIdsForRange

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: