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

Calling replSetSyncFrom on a primary should raise a warning or error

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.1.2
    • Component/s: Replication, Shell
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: