[SERVER-83211] Enable counting index tests on sharded passthrough suites Created: 14/Nov/23  Updated: 11/Dec/23

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Silvia Surroca Assignee: Backlog - Catalog and Routing
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-83977 Core list_catalog.js should take into... Closed
Assigned Teams:
Catalog and Routing
Participants:
Story Points: 2

 Description   

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

Generated at Thu Feb 08 06:51:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.