Enable counting index tests on sharded passthrough suites

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2025-11-10, CAR Team 2025-11-24
    • 2
    • 🟥 DDL
    • None
    • None
    • None
    • None
    • None
    • None

      Few index passthrough tests need to check the number of indexes of a collection. They are excluded from the sharded passthrough suites because sharded collections have an extra index on the shardKey.

      Instead of excluding them, we can adapt these tests to expect an extra index checking the method FixtureHelper.isSharded(coll) (like list_catalog.js is already doing).

      Here is the list of the tests affected by this:

      • jstests/core/**/apitest_dbcollection.js
      • jstests/core/**/bad_index_plugin.js
      • jstests/core/**/create_indexes.js
      • jstests/core/**/list_indexes_non_existent_ns.js
      • jstests/core/**/mr_preserve_indexes.js

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

              Created:
              Updated:
              Resolved: