[SERVER-70725] Cluster aggregate may incorrectly result in CollectionUUIDMismatch if fetching routing info fails Created: 20/Oct/22  Updated: 29/Oct/23  Resolved: 26/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.1, 6.0.3, 6.2.0-rc0

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

Issue Links:
Backports
Depends
Problem/Incident
is caused by SERVER-67408 CollectionUUIDMismatch error can be h... Closed
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.1, v6.0
Sprint: Execution Team 2022-10-31
Participants:

 Description   

If cluster aggregate's call to sharded_agg_helpers::getExecutionNsRoutingInfo fails, currently we throw CollectionUUIDMismatch if an expected collection UUID was provided. However, if the error is not specifically NamespaceNotFound then it's possible the database actually does exist and we should not throw CollectionUUIDMismatch.



 Comments   
Comment by Githook User [ 04/Nov/22 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-70725 Narrow errors resulting in `CollectionUUIDMismatch` in cluster aggregate

(cherry picked from commit 85a50585a0b5ea5b174dbb0c8678a85d68ac5d4e)
Branch: v6.0
https://github.com/mongodb/mongo/commit/bb65f34a5728db4f94efef7ced07ef2310e69eb8

Comment by Githook User [ 04/Nov/22 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-70725 Narrow errors resulting in `CollectionUUIDMismatch` in cluster aggregate

(cherry picked from commit 85a50585a0b5ea5b174dbb0c8678a85d68ac5d4e)
Branch: v6.1
https://github.com/mongodb/mongo/commit/4dd9956c60337535a4312831c65129d66ffeb3fb

Comment by Githook User [ 26/Oct/22 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-70725 Narrow errors resulting in `CollectionUUIDMismatch` in cluster aggregate
Branch: master
https://github.com/mongodb/mongo/commit/85a50585a0b5ea5b174dbb0c8678a85d68ac5d4e

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