Fix timeseries routing for loadIndexesFromAuthoritativeShard

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2026-04-13
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      loadIndexesFromAuthoritativeShard does not correctly route requests for timeseries collections. The CollectionRouter's RoutingContext does not implicitly translate the namespace to the timeseries buckets collection, causing incorrect shard targeting.

      The fix mirrors the approach already used in cluster_list_indexes_cmd.cpp: use a CollectionRoutingInfoTargeter to properly resolve the namespace and apply timeseriesNamespaceNeedsRewrite to rewrite the command when needed.

      This is needed for SERVER-112816 in which we will make $out resilient to concurrent timeseries upgrade/downgrade.

            Assignee:
            Tommaso Tocci
            Reporter:
            Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: