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
- depends on
-
SERVER-83977 Core list_catalog.js should take into account the createIndex might not hit every shard
-
- Closed
-
- is related to
-
SERVER-113670 Investigate why index_sparse1.js fails in primary_driven_index_builds suite
-
- Blocked
-
- related to
-
SERVER-113531 Chunk migrations fail in geo_s2disjoint_holes.js test
-
- Backlog
-