[SERVER-80137] Override runCommand on implicitly_shard_accessed_collections.js Created: 16/Aug/23  Updated: 26/Oct/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: oldshardingemea, shardingemea-qw
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Catalog and Routing
Participants:
Story Points: 1

 Description   

There are passthrough suites that implicitly shard all the created collections by overriding the shell commands createCollection and getCollection methods by importing the implicitly_shard_accessed_collections.js file like here.

However, the current implementation doesn't override the runCommand method so any collection created through a runCommand call won't be implicitly sharded.

The purpose of this ticket is to override the runCommand for create command in implicitly_shard_accessed_collections.js to be sure all created collections are implicitly sharded. Here is an example of a runCommand override for multi stmt txn passthrough suite.


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