[SERVER-1769] Change assertion yells while adding unknown hosts as replica set members. Created: 10/Sep/10  Updated: 12/Jul/16  Resolved: 12/Nov/10

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 1.6.2
Fix Version/s: 1.7.3

Type: Bug Priority: Minor - P4
Reporter: Jozef Sovcik Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Mongod yells assertion "bad config - dups?", "assertionCode"=>13278, "errmsg"=>"db assertion failure" while trying to add host unreachable/unknown (e.g. because of not working dns or simply because of error while typing the name) replica set member.

This is quite misleading and it should yell some other, better understandable assertion, e.g. "host unknown".



 Comments   
Comment by auto [ 12/Nov/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: make isSelf just return false if can't resolve host SERVER-1769
/mongodb/mongo/commit/50fb799a72703a1d23587d7234401b0e496e40ae

Comment by Dwight Merriman [ 10/Sep/10 ]

mathias HostAndPort("asdf").isSelf() incorrectly returns true and causes this case.

see the unit test (commented out) i added above.

Comment by auto [ 10/Sep/10 ]

Author:

{'login': 'dwight', 'name': 'Dwight', 'email': 'dwight@10gen.com'}

Message: hostandport is broken SERVER-1769
http://github.com/mongodb/mongo/commit/96d348821d11c20636a6cbfa6f3a075d6ad899a8

Generated at Thu Feb 08 02:57:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.