[SERVER-51070] Get rid of writeConfigServerDirect for writes to the ConfigServer database Created: 21/Sep/20  Updated: 29/Oct/23  Resolved: 04/Dec/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Eric Maynard Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-28756 Remove TODO SERVER-28756 comment and ... Closed
Related
related to SERVER-53237 Make the ConfigServer support request... Backlog
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-11-30, Sharding 2020-12-14
Participants:
Linked BF Score: 17

 Description   

https://github.com/mongodb/mongo/blob/master/src/mongo/s/catalog/sharding_catalog_client_impl.cpp#L771-L779

Note that policy is labelled not idempotent, but it seems like there is a case when the write can be applied more than once in the server as seen on the linked BF. Investigate whether isNotPrimaryError it is actually safe to retry with this error.



 Comments   
Comment by Githook User [ 04/Dec/20 ]

Author:

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

Message: SERVER-51070 Use the regular write path for writes to the Config Server

Due to a legacy check on the Config Server, commands sent there cannot
contain a `shardVersion` entry, even if it is UNSHARDED. This change
adds ability to not attach shard version on requests and does that for
writes against the config server.
Branch: master
https://github.com/mongodb/mongo/commit/eacb844d1831986fddc9aeba12a26aa5b2793d06

Comment by Githook User [ 03/Dec/20 ]

Author:

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

Message: SERVER-51070 Move the ConfigServer ShardId constant to be under ShardId

... so components lower on the stack don't need to link ShardRegistry.
Branch: master
https://github.com/mongodb/mongo/commit/80cbded0cf8ab6fd8a88f17dd608beb883d74b33

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