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

rs.syncFrom does not display an error during initial sync

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.2.6, 2.4.8
    • Shell
    • None
    • ALL

    Description

      http://docs.mongodb.org/manual/tutorial/configure-replica-set-secondary-sync-target/ indicates that if an initial sync is already in progress then rs.syncFrom will have no effect, nor will it display an error. This command shouldn't silently fail. It should display an error in the shell indicating that it didn't succeed.

      The output:

      rs.syncFrom("HOST:27017")
      { "syncFromRequested" : "HOST:27017", "ok" : 1 }

      doesn't indicate that nothing will happen until the initial sync completes.

      The docs for rs.syncFrom http://docs.mongodb.org/manual/reference/method/rs.syncFrom/
      and replSetSyncFrom http://docs.mongodb.org/manual/reference/replica-commands/#dbcmd.replSetSyncFrom
      could indicate this better. The only mention of this behavior is on the page linked at the beginning of this report.

      Attachments

        Activity

          People

            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            samn Sam Neubardt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: