[SERVER-56225] Wrong BSONElelment integer conversion in ShardingDDLCoordinatorService Created: 21/Apr/21  Updated: 29/Oct/23  Resolved: 21/Apr/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: Backlog
Fix Version/s: 5.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Tommaso Tocci
Resolution: Fixed Votes: 0
Labels: PM-1965-Milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 135

 Description   

This conversion is wrong, because the underlying bson type is an integer, so we should use numberLong() instead of Long() to retrieve it as long long type.



 Comments   
Comment by Githook User [ 21/Apr/21 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-56225 Wrong BSONElelment integer conversion in ShardingDDLCoordinatorService
Branch: master
https://github.com/mongodb/mongo/commit/d7a4602a84aa6fda20b873576ee77f0aa332583e

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