[SERVER-69008] Narrowing conversion of size parameter for cloneCollectionAsCapped Created: 19/Aug/22  Updated: 29/Oct/23  Resolved: 06/Feb/23

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

Type: Bug Priority: Major - P3
Reporter: Dan Larkin-York Assignee: Matt Kneiser
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-68309 Investigate for unsafe narrowing conv... Closed
Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-10-31, Execution Team 2023-02-20, Execution Team 2023-02-06
Participants:

 Description   

While processing a cloneCollectionAsCapped command (or its associated oplog entry), it seems we may subject its size parameter to a narrowing conversion. This may have unexpected behavior.



 Comments   
Comment by Githook User [ 04/Feb/23 ]

Author:

{'name': 'Matt Kneiser', 'email': 'matt.kneiser@mongodb.com', 'username': 'themattman'}

Message: SERVER-69008 Retain CappedCollection Sizes as Ints
Branch: master
https://github.com/mongodb/mongo/commit/97aa1b991c3d2a2ba8ab6ede923a0292b4fe7ab6

Comment by Dianna Hohensee (Inactive) [ 23/Aug/22 ]

To pair with Greg.W on what capped does.

Generated at Thu Feb 08 06:12:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.