[SERVER-71010] Initialize CollectionShardingStateFactory on BM_UnshardedDestinedRecipient Created: 02/Nov/22  Updated: 29/Oct/23  Resolved: 02/Nov/22

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

Type: Task Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: Jordi Serra Torrens
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
is caused by SERVER-69435 Make the CSS acquisition a RAII Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-11-14
Participants:
Linked BF Score: 57

 Description   

BM_UnshardedDestinedRecipient does not initialize any CollectionShardingStateFactory. However, after SERVER-69435, ShardingWriteRouter always accesses the CollectionShardingState, therefore its factory needs to be initialized. Since this particular benchmark targets a replicaSet environment, a `CollectionShardingStateFactoryStandalone` should be used.



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

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-71010 Initialize CollectionShardingStateFactory on BM_UnshardedDestinedRecipient
Branch: master
https://github.com/mongodb/mongo/commit/df0a6fa58d1cec0f26c221e81a42843e61086f03

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