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

DataReplicator should return ShutdownInProgress when it is shutdown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Operating System:
      ALL
    • Sprint:
      Repl 2016-12-12
    • Linked BF Score:
      0

      Description

      If doInitialSync terminates because the DataReplicator was shutdown, then it will return the current initial sync status if it has an error:
      https://github.com/mongodb/mongo/blob/549c3f4315fd95431a662e7a8eff880f00b1458d/src/mongo/db/repl/data_replicator.cpp#L582-L587
      https://github.com/mongodb/mongo/blob/549c3f4315fd95431a662e7a8eff880f00b1458d/src/mongo/db/repl/data_replicator.cpp#L691-L697

      Rather than logging the shutdown status, we should log the initial sync status, and return the shutdown status so that the caller can differentiate a termination due to shutdown from a termination due to failure.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              benety.goh Benety Goh
              Reporter:
              judah.schvimer Judah Schvimer
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: