[SERVER-64035] Some UNSHARDED router paths do not attach DB version Created: 28/Feb/22  Updated: 29/Oct/23  Resolved: 01/Mar/22

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

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: PM-2144-Milestone-0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-63759 Implement a first pass of the Router API Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

There are certain code paths which lead to buildUnshardedRequestsForAllShards with the expectation that this call will attach the UNSHARDED version to the collection. However, because [{{appendShardVersion}}|] doesn't modify its input parameter, they end up without the UNSHARDED version attached and appear to the shards as if they come from a direct connection.

This violates the sharding protocol and may lead to bugs that are hard to predict or diagnose.



 Comments   
Comment by Githook User [ 01/Mar/22 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-64035 Ensure all UNSHARDED code paths include DBVersion
Branch: master
https://github.com/mongodb/mongo/commit/21459dd651094d3771bd74e3da5f9ae679832f77

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