[SERVER-6474] Error message for attempting replSetSyncFrom "self" needs improvement. Created: 17/Jul/12  Updated: 11/Jul/16  Resolved: 08/Aug/12

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 2.1.2
Fix Version/s: 2.2.0-rc1

Type: Bug Priority: Minor - P4
Reporter: Bernie Hackett Assignee: Samantha Ritter (Inactive)
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Operating System: ALL
Participants:

 Description   

This is the current error message received when running replSetSyncFrom with self:

MongoDB shell version: 2.1.3-pre-
connecting to: 127.0.0.1:27018/test
foo:SECONDARY> rs.syncFrom('behackett-dt:27018')
{
	"syncFromRequested" : "behackett-dt:27018",
	"errmsg" : "could not find member in replica set",
	"ok" : 0
}

The same error is raised if "self" is the primary:

foo:PRIMARY> db.runCommand('ismaster').primary
behackett-dt:27017
foo:PRIMARY> db.runCommand({replSetSyncFrom: 'behackett-dt:27017'})
{
	"syncFromRequested" : "behackett-dt:27017",
	"errmsg" : "could not find member in replica set",
	"ok" : 0
}

The error message should really tell the user what they are doing wrong to avoid support cases.



 Comments   
Comment by auto [ 08/Aug/12 ]

Author:

{u'date': u'2012-08-08T07:23:49-07:00', u'email': u'ian.whalen@gmail.com', u'name': u'Ian Whalen'}

Message: Merge pull request #280 from samantharitter/SERVER-6474

SERVER-6474 give better error messages when syncFrom is misused
Branch: master
https://github.com/mongodb/mongo/commit/2a67c253550bbc3ca9759d0ec8b98169ea0223a8

Comment by auto [ 08/Aug/12 ]

Author:

{u'date': u'2012-08-08T07:23:49-07:00', u'email': u'ian.whalen@gmail.com', u'name': u'Ian Whalen'}

Message: Merge pull request #280 from samantharitter/SERVER-6474

SERVER-6474 give better error messages when syncFrom is misused
Branch: master
https://github.com/mongodb/mongo/commit/2a67c253550bbc3ca9759d0ec8b98169ea0223a8

Comment by auto [ 08/Aug/12 ]

Author:

{u'date': u'2012-08-01T11:57:53-07:00', u'email': u'samantha.ritter@10gen.com', u'name': u'Samantha Ritter'}

Message: SERVER-6474 give more descriptive error messages when syncFrom is misused
Branch: master
https://github.com/mongodb/mongo/commit/ca6e4a62aa45c02481a93c865e9c7e70c9f42bed

Comment by Samantha Ritter (Inactive) [ 06/Aug/12 ]

pull request opened: https://github.com/mongodb/mongo/pull/280

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