Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6474

Error message for attempting replSetSyncFrom "self" needs improvement.

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.2.0-rc1
    • 2.1.2
    • Replication
    • ALL

    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.

      Attachments

        Activity

          People

            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: