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

Add initial sync unittests for metadata retries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.2
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Repl 2016-10-10, TIG 2016-11-21, Repl 2016-12-12, Repl 2017-02-13

      Description

      Write tests that send failed responses and then successful responses for the following commands, checking that retries lead to a successful result:

      1. listIndexes
      2. find on a collection during a collection clone
      3. sync source selection
      4. find on the oplog when querying the upstream node for the last oplog entry
      5. listDatabases
      6. listCollections

      Write tests for the OplogFetcher to ensure it retries and does not cause initial sync to fail on retryable errors

      Write tests for the DataReplicator to test that larger errors lead to a restart of initial sync:

      1. Rollback
      2. Sync source changes
      3. Retry exhaust on any of the above retryable errors

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: