[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: |
|
||||||||
| 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. |