[SERVER-27977] Remove config connection string command parameters that are no longer used to initiate sharding, and eliminate current uses of ShardLocal::getConnString() Created: 10/Feb/17  Updated: 05/Apr/17  Resolved: 27/Feb/17

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

Type: Task Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Dianna Hohensee (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency
has to be done before SERVER-27860 Enable ShardLocal on shards Closed
Related
is related to SERVER-27625 Remove dead ANSA and setShardVersion ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2017-02-13, Sharding 2017-03-06
Participants:

 Description   

We no longer longer need to pass the config connection string in sharding commands to initiate the sharding state on sharding unaware shard servers. As of v3.4, shards are shard aware, and get the config connection string from the shard identity document stored on the shard servers. SERVER-27625 cleaned up the dead sharding initialization code via setShardVersion, but the config connection string command parameters still exist: these are unused and must be removed.

On the config server, ShardRegistry::getConfigServerConnectionString() is used to provide the config connection string via ShardLocal::getConnString(), which gets it from the ReplicationCoordinator's ReplicaSetConfig, since config servers are always replica sets. We should only ever need to use the config connection string in one place on the config server, which is to create the shard identity document during addShard command execution. Therefore, since ShardLocal::getConnString() only has one user, creating the shard identity document will just go straight to the replication state.



 Comments   
Comment by Githook User [ 27/Feb/17 ]

Author:

{u'username': u'DiannaHohensee', u'name': u'Dianna Hohensee', u'email': u'dianna.hohensee@10gen.com'}

Message: SERVER-27977 Remove unused config conn string command parameters
Branch: master
https://github.com/mongodb/mongo/commit/dfd92d5109d2fad504b038a133590ae9ebe560ba

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