[SERVER-30301] Add explicit configuration object for DocumentStructureEnumerator Created: 25/Jul/17  Updated: 30/Oct/23  Resolved: 07/Aug/17

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

Type: Improvement Priority: Major - P3
Reporter: Max Hirschhorn Assignee: May Hoque
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-29795 Recursive document structure generati... Closed
is depended on by SERVER-29944 Implement a basic idempotency checker... Closed
Backwards Compatibility: Fully Compatible
Sprint: TIG 2017-07-31, TIG 2017-08-21
Participants:

 Description   

The DocumentStructureEnumerator class added as part of SERVER-29795 is parameterized by

  1. A set of field names to use in the created document,
  2. A maximum depth for nested subdocuments and arrays, and
  3. A maximum length for array values.

may.hoque had the idea to bundle these options together in another class so that we didn't need to have every function take these constraints as threee separate parameters. Additionally, we should add two boolean parameters:

  1. A boolean flag to indicate whether we should enumerate documents containing subdocuments, and
  2. A boolean flag to indicate whether we should enumerate documents containing array values.

Note: Until SERVER-28777 is implemented, multiInitialSyncApply_noAbort() will continue to use the 3.4 update codepath. The work described in this ticket serves as a workaround for SERVER-29944 (specifically by using generateArrays=false) to avoid idempotency issues related to the handling of "blocking elements" / "non-viable paths" in the 3.4 update codepath.



 Comments   
Comment by Githook User [ 10/Aug/17 ]

Author:

{'name': 'may', 'email': 'may.hoque@mongodb.com'}

Message: SERVER-30301 Add explicit configuration object for DocumentStructureEnumerator
Branch: master
https://github.com/mongodb/mongo/commit/4f173c14a1f5c6608f0f114a52d776975690572d

Comment by May Hoque [ 07/Aug/17 ]

Please have a wonderful day!

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