[SERVER-8237] autoIndexId:false should be disabled Created: 18/Jan/13  Updated: 05/Jun/23  Resolved: 17/Apr/18

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

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Eric Milkie
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-4718 Replica Set re-sync fails if --notabl... Closed
is depended on by DRIVERS-473 Deprecate autoIndexId for collection ... Closed
Documented
is documented by DOCS-11635 Docs for SERVER-8237: autoIndexId:fal... Closed
Duplicate
is duplicated by SERVER-22902 autoIndexId cannot be false when crea... Closed
Gantt Dependency
has to be done after SERVER-19067 Warn at creation that autoIndexId:fal... Closed
Problem/Incident
Related
related to SERVER-12051 autoIndexId=false allowed on non capp... Closed
related to PHPLIB-1159 Do not trigger E_USER_DEPRECATED for ... Backlog
is related to SERVER-12331 Insert creates the _id field, always Closed
is related to SERVER-14128 Creating _id index with unique:false ... Closed
is related to SERVER-34629 Exclude jstests using `local` databas... Closed
is related to JAVA-2685 Deprecate autoIndexId for collection ... Closed
is related to SERVER-12334 Update does not ensure an _id field Closed
is related to SERVER-14132 Warn during initial sync if _id index... Closed
Backwards Compatibility: Major Change
Operating System: ALL
Sprint: Storage NYC 2018-04-23
Participants:
Linked BF Score: 15

 Description   

Currently you can create a collection without an _id index (very bad with replication). We should disallow this old and outdated feature. We can still allow this feature via enableTestCommands-mode so that tests continue to work.



 Comments   
Comment by Githook User [ 17/Apr/18 ]

Author:

{'name': 'Eric Milkie', 'email': 'milkie@10gen.com', 'username': 'milkie'}

Message: SERVER-8237 disable autoIndexId:false for replicated collections
Branch: master
https://github.com/mongodb/mongo/commit/222864b678f06c0170026a2899eac62bf563dccb

Comment by Gregory McKeon (Inactive) [ 22/Feb/18 ]

Please close SERVER-4718 when this is fixed.

Comment by Eric Milkie [ 16/Feb/18 ]

We should disable this feature for all non-local database collections.

Comment by Logan Lembke [ 11/Jul/17 ]

While this should be disabled for replicating databases, it should not be disabled for self contained databases. There is no reason to prohibit its use in this case.

Comment by Ramon Fernandez Marina [ 18/May/16 ]

zyd_com, this is to let you know that this ticket is still scheduled for the current development cycle but hasn't been scheduled yet. Once it gets scheduled we'll take a look at your pull request. Thanks for your continued patience.

Regards,
Ramón.

Comment by Ramon Fernandez Marina [ 03/Mar/16 ]

zyd_com submitted a pull request.

Comment by Daniel Pasette (Inactive) [ 26/Feb/16 ]

I'd like to get this scheduled in the next 2-3 months

Generated at Thu Feb 08 03:16:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.