[SERVER-57480] Invalid iterator access in api_version_metrics.cpp Created: 05/Jun/21  Updated: 29/Oct/23  Resolved: 07/Jun/21

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 5.0.0-rc1, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Billy Donahue Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-51476 Upgrade Abseil to 20210324.1 Closed
Problem/Incident
is caused by SERVER-49965 Add apiVersion metrics to serverStatu... Closed
Related
is related to SERVER-57477 stdx::erase_if for stdx::unordered_map Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0, v4.9
Steps To Reproduce:

discovered by abseil upgrade patch SERVER-51476, exposing iterator invalidation problems.

https://spruce.mongodb.com/version/60ba87cb3066150e9e28040f/tasks?page=0&sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC&statuses=all-failures,failed,task-timed-out

Sprint: Service Arch 2021-06-14
Participants:

 Description   

Invalid iterators appear in the code to age out old app versions after they are a day old. So this bug wouldn't bite in production until a server has been running for 1 day, making it hard to catch in testing.

src/mongo/db/stats/api_version_metrics.cpp

Introduced in 4.7.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 07/Jun/21 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-57480 invalid iterators in APIVersionMetrics

(cherry picked from commit 0fec5e0d4364d00d30ecb3493c611e9f325bbf9a)
Branch: v5.0
https://github.com/mongodb/mongo/commit/8b27cdd8d28d62704bd258dcfb49644fe8c5a822

Comment by Githook User [ 07/Jun/21 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-57480 invalid iterators in APIVersionMetrics
Branch: master
https://github.com/mongodb/mongo/commit/0fec5e0d4364d00d30ecb3493c611e9f325bbf9a

Comment by Billy Donahue [ 05/Jun/21 ]

CR https://mongodbcr.appspot.com/791130001

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