-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
In resmoke, mongos is spun up connected to a single mongot, it only sends the
command to its colocated mongot. This is problematic for sharding with mongot-localdev as each mongod is deployed with its own mongot and (for server testing purposes) the mongos is connected to the last spun up mongot. In other words, the rest of the mongots in the cluster do not receive these index management commands and thus search queries will return incomplete results as the other mongots do not have an index (and all search queries require index).
The solution is to run index management commands directly on each primary rather than on the collection, to ensure the command is propogated to each mongot in the cluster.
This ticket can use createSearchIndexes as an example.