[SERVER-56780] [4.4] mongod collStats does not handle large values for scale Created: 08/May/21 Updated: 29/Oct/23 Resolved: 25/May/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | 4.4.5 |
| Fix Version/s: | 4.4.7 |
| 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, Execution Team 2021-05-31 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
When the collStats command is given a scale value that is too large for the integer type, a 4.4 server may fail with a BadValue error. This behavior was addressed in 4.9 and 5.0 when the collStats option handling was converted to using a IDL-generated parser that uses BSONElement::safeNumberInt().
|
| Comments |
| Comment by Githook User [ 22/May/21 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: |
| 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 [ 19/May/21 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: |
| Comment by Githook User [ 18/May/21 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (partially cherry picked from commit b83bf99b6e48e2f41ea3b1e7ed6aeb4cf1eb0d31) |
| Comment by Benety Goh [ 08/May/21 ] |
|
This issue was discovered while merging The IDL conversion for closest in 5.0 was done in BSONElement::safeNumberInt() was added in 5.0 during The mongos collStats in 5.0 is also quite different from 4.4 due to recent improvements made in |