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

Calling replSetSyncFrom on a primary should raise a warning or error

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.1.2
    • Replication, Shell
    • ALL

    Description

      This is a pretty minor usability issue. This is the result of running replSetSyncFrom on a primary:

      foo:PRIMARY> rs.syncFrom("behackett-dt:27019")
      { "syncFromRequested" : "behackett-dt:27019", "ok" : 1 }
      foo:PRIMARY> 
      foo:PRIMARY> db.runCommand({replSetSyncFrom: 'behackett-dt:27019'})
      { "syncFromRequested" : "behackett-dt:27019", "ok" : 1 }
      foo:PRIMARY> 

      There is no log message that I could see (even at log level 5).

      This should really raise an exception or at least warn the user that what they are doing doesn't make any sense.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: