Adapt isSharded test check for viewless timeseries

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2025-04-14
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We have many timeseries tests under jstests/core/timeseries/ that use the following pattern to check if the timeseries collection is sharded.

      const bucketsColl = db.getCollection('system.buckets.' + coll.getName());
      const isShardedTimeseries = FixtureHelpers.isSharded(bucketsColl);

      For viewless timeseries collection the system.buckets collection does not exist so we should check directly if `coll` is sharded rather than the buckets collection.

      The goal of this ticket is to replace these checks with a new logic that:
       - Works also for viewless timeseries collection
       - Works also in mutiverison suites.

       

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

              Created:
              Updated:
              Resolved: