[SERVER-24032] When processing createIndexes (on V2 indexes), secondaries should error on unfamiliar arguments Created: 03/May/16  Updated: 19/Nov/16  Resolved: 29/Sep/16

Status: Closed
Project: Core Server
Component/s: Index Maintenance, Replication
Affects Version/s: None
Fix Version/s: 3.4.0-rc0

Type: Bug Priority: Critical - P2
Reporter: Andy Schwerin Assignee: James Wahlin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-26341 TaskRunner destroyed prior to task re... Closed
Related
related to SERVER-19642 createIndexes command allows duplicat... Closed
related to SERVER-769 Validate top-level & index spec field... Closed
is related to SERVER-24033 createIndexes command should write th... Closed
Backwards Compatibility: Minor Change
Operating System: ALL
Sprint: Integration 2016-10-10
Participants:

 Description   

When the createIndexes command is replicated to a secondary, if the secondary sees an argument that it doesn't understand, it should return an error (and thus abort) rather than ignoring the argument. This impacts V2 indexes only, which are new with MongoDB 3.4.



 Comments   
Comment by James Wahlin [ 29/Sep/16 ]

DOCS-9049 (linked to SERVER-769) was created to report stricter createIndexes validation. Will mention the "breaking changes" request on that ticket.

Comment by Daniel Pasette (Inactive) [ 29/Sep/16 ]

I think it should be listed in our release notes "breaking changes" section along with SERVER-769

Comment by Githook User [ 29/Sep/16 ]

Author:

{u'username': u'jameswahlin', u'name': u'James Wahlin', u'email': u'james.wahlin@10gen.com'}

Message: SERVER-24032 Replicated createIndexes should error on unrecognized fields
Branch: master
https://github.com/mongodb/mongo/commit/8e5e8f0fc17c60c9bd1bf72611eac2cf084b57b6

Comment by James Wahlin [ 27/Sep/16 ]

Removed the following from the ticket description as it is now in place, with work done under SERVER-769.

Ideally, when clients sent the createIndexes command to a primary, it would also return an error on unfamiliar arguments. This is not necessary for keeping replica sets consistent, however.

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