Change mongos to send commands createIndexes, dropIndexes, and collMod with shard versions and only to target shards believed to own chunks for the collection plus the primary shard. Note this includes where the config server sends createIndexes to create the sessions collection.
- is duplicated by
-
SERVER-32723 Smarter targeting for collMod, create/dropIndex
- Closed
-
SERVER-45413 Sessions collection is not set up & Failed to generate TTL index for config.system.sessions on all shards
- Closed
- related to
-
SERVER-62310 collMod command not sent to all shards for a sharded collection if no chunks have been received
- Closed