[SERVER-4069] on addShard, don't error if replica set config doesn't explicitly have default port Created: 13/Oct/11  Updated: 29/Feb/12  Resolved: 14/Oct/11

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

Type: Improvement Priority: Minor - P4
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-2029 on addShard, add default port to conf... Closed
Participants:

 Description   

If you run an addShard command and give it a host with the port 27017, but in the replica set configuration the port isn't set explicitly, addShard thinks the two host aren't the same and returns an error.

Relevant code is in addShard in s/grid.cpp



 Comments   
Comment by Spencer Brody (Inactive) [ 14/Oct/11 ]

In 2.0 you can no longer get hosts without a port in your replica set config since it auto-adds the default port if you don't provide it. This makes this fix unnecessary.

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