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.
analyzeShardKey command should fail if only keyCharacteristics is requested and the shard key doesn't have a supporting index
- Votes:
-
0 Vote for this issue
- Watchers:
-
2 Start watching this issue
- Created:
- Updated:
- Resolved: