Details
Description
If the analyzeShardKey command is run with keyCharacteristics: true and readWriteDistribution: false and the shard key does not have a supporting index, there is no metrics to return. The command would fail with an IllegalOperation error with the message like “Cannot analyze the characteristics of a shard key that doesn't have a supporting index” instead of returning an empty response.