[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:
Depends
Related
related to SERVER-56780 [4.4] mongod collStats does not handl... Closed
related to SERVER-59189 mongos dbStats does not handle large ... Closed
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: SERVER-56780 SERVER-56689 add collStats test cases for large scale values

(partially cherry picked from commit 6ed5810685550369429efae6a175b163e8a111a5)
Branch: v4.4
https://github.com/mongodb/mongo/commit/9d1b28dc920d7e802ae631b130590d0a53da071c

Comment by Githook User [ 09/May/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-56689 ensure mongos collStats can handle large values for scale
Branch: master
https://github.com/mongodb/mongo/commit/6ed5810685550369429efae6a175b163e8a111a5

Comment by Githook User [ 08/May/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-56689 disable apitest_dbcollection.js under multiversion burn_in_tests

Number.MAX_VALUE test cases for scale option are not compatible with 4.4.
Branch: master
https://github.com/mongodb/mongo/commit/f058c57d6005ce8d633c5aaf40c52d43dae768b4

Generated at Thu Feb 08 05:39:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.