Wrap split and merge in a CollectionRouter

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2026-07-20
    • 🟩 Routing and Topology
    • None
    • None
    • None
    • None
    • None
    • None

      Wrapping split and merge in a CollectionRouter::route() function prevents StaleConfig errors from being exposed to the user.

      CollectionRouter::route() is essentially a wrapper that retries the operation and refreshes router metadata when a shard returns StaleConfig, indicating that the shard version used for routing was outdated.

      This retry logic was previously handled by the mongos service entry point, but it was removed recently and was never added to the split and merge commands.

            Assignee:
            Silvia Surroca
            Reporter:
            Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: