-
Type:
Bug
-
Resolution: Done
-
Priority:
Minor - P4
-
Affects Version/s: 2.1.2
-
Component/s: Replication
-
ALL
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
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.