Fix MongoProcessInterface timeseries createIndexes routing

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

      The createIndexesOnEmptyCollection method in both ShardServerProcessInterface and NonShardServerProcessInterface does not properly handle timeseries collections.

      On shardsvr: The CollectionRouter used by ShardServerProcessInterface::createIndexesOnEmptyCollection does not translate the namespace to the timeseries buckets collection, causing the createIndexes command to be routed incorrectly. The fix uses a CollectionRoutingInfoTargeter to properly resolve the namespace and rewrite the command for timeseries collections.

      On non-shardsvr (replica sets): The collection acquisition in NonShardServerProcessInterface::createIndexesOnEmptyCollection does not resolve timeseries view namespaces to the underlying system.buckets collection. The fix uses acquireCollectionWithBucketsLookup to handle this resolution.

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

              Created:
              Updated:
              Resolved: