-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
Major - P3
-
None
-
Affects Version/s: 3.0.7
-
Component/s: Replication
-
None
-
ALL
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Calling rs.initiate() (i.e. without a configuration object) will cause MongoDB to create its own replicaSet configuration. Unfortunately, for "host" it chooses the computer name without the domain name. Of course this is only a problem when working with computers across different domains, which is probably why no one has noticed it before now.
Workaround: call rs.initiate with a configuration object like this:
{
_id: "rs0",
members: [{
_id: 0,
host: "host.domain.tld:port"
}]
}
- related to
-
SERVER-4784 replSetInitiate without arguments breaks when hostname isn't resolvable
-
- Closed
-