[SERVER-25874] Add serverParameter configuration for initial sync metadata retry params. Created: 30/Aug/16  Updated: 19/Nov/16  Resolved: 01/Sep/16

Status: Closed
Project: Core Server
Component/s: Replication, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.3.14

Type: Task Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Judah Schvimer
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-26062 Default to one initial sync attempt i... Closed
Documented
is documented by DOCS-8897 Add serverParameter configuration for... Closed
Related
related to SERVER-25966 Add initial sync unittests for metada... Closed
is related to SERVER-26225 Initial sync retry parameters should ... Backlog
Backwards Compatibility: Fully Compatible
Sprint: Repl 2016-09-19
Participants:

 Description   

In order to support better testing we should add (startup and runtime) server parameter support for the retry values in the data replicator initial sync.

This will also allow us to test resync and replSetSyncFrom.

The parameters to add include things like retries for:

  • sync source selection
  • listDatabases
  • listCollections
  • listIndex
  • find (for each collection)

Most of these options already have constants in the databases/database/collection cloners.



 Comments   
Comment by Judah Schvimer [ 01/Sep/16 ]

This work adds the following server parameters:
numInitialSyncListIndexesAttempts (number of times to attempt a listIndexes command when cloning a collection in initial sync)
numInitialSyncCollectionFindAttempts (number of times to attempt a find command when cloning a collection in initial sync)
numInitialSyncConnectAttempts (number of times to attempt to find a sync source in initial sync)
numInitialSyncOplogFindAttempts (number of times to attempt a find command when querying the oplog on the upstream node for the last oplog entry in initial sync)
numInitialSyncListDatabasesAttempts (number of times to attempt a listDatabases command when cloning databases in initial sync)
numInitialSyncListCollectionsAttempts (number of times to attempt a listCollections command when cloning a database in initial sync)

And renames numInitialSyncRetries to numInitialSyncAttempts with the semantics changing accordingly.

Comment by Githook User [ 01/Sep/16 ]

Author:

{u'username': u'judahschvimer', u'name': u'Judah Schvimer', u'email': u'judah@mongodb.com'}

Message: SERVER-25874 Add server parameter configuration for initial sync metadata retry params
Branch: master
https://github.com/mongodb/mongo/commit/0dcbbe8777de4b279d095c37c9060210c6a66b29

Comment by Judah Schvimer [ 31/Aug/16 ]

CR: https://mongodbcr.appspot.com/88940001/

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