The index creation for range deletions happens in _shardingOnTransitionToPrimaryHook however, this code will not be run in the case that a shard is added for the first time to a cluster using addShard because the ShardingState is not necessarily enabled when the hook is run.
This was fixed on version 6.1 by SERVER-62805 by checking if the node is a shard server instead of checking if the sharding state is enabled for index creation.
This ticket is to backport that fix to 6.0.
- is related to
-
SERVER-62805 Add local storage on shards for the sharded index catalog
- Closed