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

Resync data on replSetSyncFrom during initial sync

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.4
    • Sprint:
      Repl 2020-02-10, Repl 2020-03-09, Repl 2020-03-23

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: