[SERVER-24304] Add more DataReplicator::initialSync unit tests Created: 27/May/16  Updated: 25/Jan/17  Resolved: 08/Aug/16

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.3.11

Type: Improvement Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: initialSync
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-25148 Fetcher should deliver CallbackCancel... Closed
is related to SERVER-25150 DataReplicatorTest::failsOnClone hang... Closed
is related to SERVER-25130 DataReplicator::_waitOnAndResetAll() ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 16 (06/24/16), Repl 17 (07/15/16), Repl 18 (08/05/16), Repl 2016-08-29
Participants:

 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


 Comments   
Comment by Benety Goh [ 08/Aug/16 ]

Resolving ticket after making test fixture and minor test improvements. Test cases in description will be addressed in separate SERVER tickets.

Comment by Githook User [ 08/Aug/16 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-24304 added InitialSyncTest::tearDown()
Branch: master
https://github.com/mongodb/mongo/commit/56726233a941c8eed220b65907ae822ddda40100

Comment by Githook User [ 29/Jul/16 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-24304 do not retry initial sync in DataReplicatorTest
Branch: master
https://github.com/mongodb/mongo/commit/b59836bb0f2d6572ee7a6df77bedd443c79f1dd0

Comment by Githook User [ 27/Jul/16 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-24304 DataReplicator::doInitialSync accepts maxRetries
Branch: master
https://github.com/mongodb/mongo/commit/3f482bd19e15e3d7c885e80a1f891b27c7263556

Comment by Githook User [ 01/Jul/16 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-24304 added helper function to validate remote command name in tests
Branch: master
https://github.com/mongodb/mongo/commit/80ba1250636d64aef39819fca4c5e1a69a271189

Comment by Githook User [ 30/Jun/16 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-24304 added convenience functions for scheduleResponse to NetworkInterfaceMock
Branch: master
https://github.com/mongodb/mongo/commit/7a617135067bc21869dcaaef498f922ac5caef24

Generated at Thu Feb 08 04:05:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.