[SERVER-22731] give correct error message when running initiate on a non-replset mongod Created: 18/Feb/16 Updated: 25/Jan/17 Resolved: 19/Feb/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 3.2.3 |
| Fix Version/s: | 3.2.4, 3.3.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Eric Milkie | Assignee: | Benety Goh |
| Resolution: | Done | Votes: | 0 |
| Labels: | code-and-test | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Backport Completed: | |||||||||||||||||
| Sprint: | Repl 11 (03/11/16) | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
If you attempt to run replSetInitiate() on a mongod that was not started with --replSet, and this isn't for a CSRS upgrade, you will get a mysterious error message:
This is because we skip adding the version field for non-replsets, and we try to validate the config before we detect the issue. |
| Comments |
| Comment by Githook User [ 19/Feb/16 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: (cherry picked from commit 0e6d01cb63688d9f130756bccb56baaa4de07170) |
| Comment by Githook User [ 19/Feb/16 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |