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

Add more DataReplicator::initialSync unit tests

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.11
    • Component/s: Replication
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Repl 16 (06/24/16), Repl 17 (07/15/16), Repl 18 (08/05/16), Repl 2016-08-29

      Description

      Add tests to cover conditions (need to prio and decide which are important/covered):

      • No dbs
      • Empty db(s)
      • No indexes on a collection
      • Lots of indexes on a collection (more than limit)
      • Losing sync source (due connection timeout versus query/command timeouts)
      • Changing to a new sync source after a failure in a previous attempt
      • Active writes during clones (start OpTime != end OpTime)
        • With new databases/collections create
        • With new unique indexes (and updates which violate unique index constraint during apply phase)
        • With map/reduce, apply ops, drop/create, etc.
      • Sync source rollback during
        • Collection clone
        • While getting latest oplog OpTime (for minvalid)
        • Oplog apply phase

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              benety.goh Benety Goh
              Reporter:
              scotthernandez Scott Hernandez
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: