Calling replSetSyncFrom on a primary should raise a warning or error

XMLWordPrintableJSON

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

      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
              Reporter:
              Bernie Hackett
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: