[SERVER-35924] AutoGetCollection can throw an unhandled exception within onShardVersionMismatch Created: 29/Jun/18  Updated: 06/Dec/22  Resolved: 29/Jun/18

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-35755 CollectionLock acquisition in shard_f... Closed
Assigned Teams:
Sharding
Operating System: ALL
Participants:

 Description   

https://github.com/mongodb/mongo/blob/r4.1.0/src/mongo/db/s/shard_filtering_metadata_refresh.cpp#L75

For example, resolveNamespace can throw NamespaceNotFound, acquiring DBLock can assert if opCtx is mark as killed, lock timed out, etc.

This can cause the server to terminate because onShardVersionMismatch has noexcept label.


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