[SERVER-17491] Messages confusing in replSetInitiate without replication enabled Created: 06/Mar/15  Updated: 18/Feb/16  Resolved: 12/Mar/15

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

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: Fit&Finish
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-22731 give correct error message when runni... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

This is when the node is not started with "--replSet".

> rs.initiate()
{
	"info2" : "no configuration specified. Using a default configuration for the set",
	"errmsg" : "exception: bad --replSet config string format is: <setname>[/<seedhost1>,<seedhost2>,...]",
	"code" : 13093,
	"ok" : 0
}

We should probably remove the info2 message and cleanup the errmsg to indicate that the node was not started with "replSet" instead of a bad format...



 Comments   
Comment by Githook User [ 12/Mar/15 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-17491 better error message when running replSetInitiate against a standalone node
Branch: master
https://github.com/mongodb/mongo/commit/64894f2b7394c4f46b9de40ffb6d6e95a74c7c41

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