[SERVER-24997] Ignore "cannot index parallel arrays" errors during initial sync because they are transient Created: 11/Jul/16  Updated: 19/Jul/16  Resolved: 12/Jul/16

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 3.0.12, 3.2.7, 3.3.9
Fix Version/s: 3.3.10

Type: Bug Priority: Major - P3
Reporter: Judah Schvimer 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-24538 Make small_oplog_rs_initsync_static p... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 17 (07/15/16)
Participants:

 Description   

During initial sync, there is a race between when we create our indexes and when we insert documents with multiple arrays. Consider the following order of events (possible in find_dedup.js):

1. Secondary starts fetching operations from primary for its oplog buffer
2. Primary creates a compound index on two fields a and b
3. Primary drops the collection
4. Primary inserts document

{a: [1,2,3], b: [4,5,6]}

5. Secondary copies the collection, including document

{a: [1,2,3], b: [4,5,6]}

, but not including the compound index on fields a and b.
6. Secondary starts to apply its oplog
7. Secondary creates a compound index on fields a and b
8. Secondary gets a "cannot index parallel arrays" error.

Later on the secondary will drop this collection and reinsert

{a: [1,2,3], b: [4,5,6]}

and get to a consistent state if it is allowed to continue.



 Comments   
Comment by Githook User [ 12/Jul/16 ]

Author:

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

Message: SERVER-24997 Ignore CannotIndexParallelArrays errors during initial sync
Branch: master
https://github.com/mongodb/mongo/commit/72d7a5572ff5b83800bb0615380d0da497d60084

Comment by Githook User [ 12/Jul/16 ]

Author:

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

Message: SERVER-24997 create CannotIndexParallelArrays error code
Branch: master
https://github.com/mongodb/mongo/commit/560c91cdeb146c733a7434888d124d73505dc0c1

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