Resharding currently doesn't validate that the user provided zone range doesn't include $ prefixed fields. This could lead to the reshardCollection command beginning but failing to persist chunk metadata with the error:
_id fields may not contain '$'-prefixed fields: $maxKey is not valid for storage.
We should probably do something similar to what updateZoneKeyRange does and call ShardKeyPattern::checkShardKeyIsValidForMetadataStorage().
- related to
-
SERVER-86718 abortReshardCollection hangs when run for failing resharding operation as described in SERVER-86717.
- Backlog