[JAVA-2685] Deprecate autoIndexId for collection creation Created: 30/Nov/17  Updated: 28/Oct/23  Resolved: 18/Apr/18

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 3.8.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-473 Deprecate autoIndexId for collection ... Closed
Related
related to SERVER-8237 autoIndexId:false should be disabled Closed

 Description   

The autoIndexId on the create command has been deprecated since 3.2. The driver should similarly deprecate it, and also stop sending autoIndexId : true by default, as that results in a warning in the response:

{ "note" : "the autoIndexId option is deprecated and will be removed in a future release",



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

Author:

{'email': 'jeff.yemin@10gen.com', 'username': 'jyemin', 'name': 'Jeff Yemin'}

Message: JAVA-2685: Deprecate CreateCollectionOptions autoIndex property

This property was deprecated in MongoDB 3.2 and removed in MongoDB 4.0.

Along with deprecating the property, ensure that the field is only
included in the "create" command if the property has explicitly been
set to false. Otherwise, a 4.0 server will reject the command.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/ecae367c9f0c8d77616e190e43c69c7e117636a6

Generated at Thu Feb 08 08:57:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.