Update callers of non opCtx taking ChunkManager functions to handle ChunkMap mixed state

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • CAR Team 2026-06-22, CAR Team 2026-07-06
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Internally, the chunk manager will resolve ShardRefs to some consistent state when a function is called where this makes sense (primarily those where a ShardId is passed as input to the function). SERZVER-128987 updated these functions to take an operationContext as an argument to allow for this resolution.

      However, there are some other functions in the chunk manager which do not have a clear resolution path or even a possible one. For example, the "forEachChunk" function can't really provide consistent shardRefs because what they should use may depend on the caller. This ticket is for addressing these functions, by going through callers and ensuring that (1) they use shardRef if they are accessing the shard element of the chunk type and (2) that whichever logic they have is robust to a mixed chunk map state.

            Assignee:
            Igor Praznik
            Reporter:
            Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: