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

Resync data on replSetSyncFrom during initial sync

    • Fully Compatible
    • v4.4
    • Repl 2020-02-10, Repl 2020-03-09, Repl 2020-03-23

      Initial sync doesn't allow changing sync source because the data isn't consistent during initial sync, however it's reasonable to allow changing sync source and restarting initial sync on replSetSyncFrom command, if the specified sync source is different from the current one. Currently the replSetSyncFrom supports initiating a resync while in the middle of an initial sync, but the resync implementation is known to be broken in subtle ways. We should investigate whether these bugs still exist and if so, redesign the implementation.

      The command should only restart the active initial sync attempt, not go back into initial sync if initial sync is complete

            Assignee:
            jason.chan@mongodb.com Jason Chan
            Reporter:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: