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

Add initial sync unittests for metadata retries

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.2
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
    • Fully Compatible
    • ALL
    • Repl 2016-10-10, TIG 2016-11-21, Repl 2016-12-12, Repl 2017-02-13

      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

            benety.goh@mongodb.com Benety Goh
            judah.schvimer@mongodb.com Judah Schvimer
            0 Vote for this issue
            4 Start watching this issue