[SERVER-58649] Do not assume that the collection is always sharded in ShardServerProcessInterface::checkRoutingInfoEpochOrThrow method Created: 19/Jul/21  Updated: 29/Oct/23  Resolved: 19/Jul/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 5.0.0-rc8
Fix Version/s: 5.0.2, 5.1.0-rc0

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Sharding EMEA 2021-07-26
Participants:
Linked BF Score: 145

 Description   

This code currently assumes that the collection is always sharded. When that's not the case, it ends up calling the ChunkManager::getVersion method that wasn't designed to be called over unsharded collections.



 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 [ 20/Jul/21 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-58649 Do not assume that the collection is always sharded in ShardServerProcessInterface::checkRoutingInfoEpochOrThrow method

(cherry picked from commit e9d1a177e8c2e8ac784e4454176ed0e03ef9c116)
Branch: v5.0
https://github.com/mongodb/mongo/commit/53eb5d9246fed6b1ba394e6333f0c353ca7c606d

Comment by Githook User [ 19/Jul/21 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-58649 Do not assume that the collection is always sharded in ShardServerProcessInterface::checkRoutingInfoEpochOrThrow method
Branch: master
https://github.com/mongodb/mongo/commit/e9d1a177e8c2e8ac784e4454176ed0e03ef9c116

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