Add initial sync unittests for metadata retries

XMLWordPrintableJSON

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

      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

            Assignee:
            Benety Goh
            Reporter:
            Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: