[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 |
| 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 |