[SERVER-56689] mongos collStats does not handle large values for scale Created: 05/May/21 Updated: 29/Oct/23 Resolved: 10/May/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Benety Goh | Assignee: | Benety Goh |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Sprint: | Execution Team 2021-05-17 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Linked BF Score: | 157 | ||||||||||||||||
| Description |
|
The mongos collStats command parses large values for the scale option in a less robust manner compared to mongod collStats. On the mongod, the scale option is parsed using code generated from the StorageStatsSpec IDL definition, which uses the more forgiving BSONElement::safeNumberInt(). The IDL generated code used BSONElement::safeNumberInt() which is more forgiving of large values. |
| Comments |
| Comment by Githook User [ 19/May/21 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (partially cherry picked from commit 6ed5810685550369429efae6a175b163e8a111a5) |
| Comment by Githook User [ 09/May/21 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: |
| Comment by Githook User [ 08/May/21 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: Number.MAX_VALUE test cases for scale option are not compatible with 4.4. |