-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 4.2.12
-
Component/s: None
-
Fully Compatible
-
ALL
-
-
(copied to CRM)
-
177
-
2
If the command does not specify any of the options below:
keyPattern: <document>, min: <document>, max: <document>
It is assumed that the user is aware that the command is going to scan the entire collection, which is ok.
If the command is executed incorrectly without the "keyPattern" field but just using min/max:
min: <document>, max: <document>,
the command is still executed on the entire collection, so there is no validation of what the user was really intending to do, which is to run datasize on a particular indexed field.
This can cause outages in large deployment, especially because datasize command cannot be killed (SERVER-58356)
I believe the command should:
1. Validate the options used and fail if incorrectly provided
2. I am also questioning if it is safe to use estimate: false by default.
Steps to reproduce below:
- is related to
-
SERVER-58356 Cannot kill the dataSize operation
- Closed