[JAVA-1063] Deprecate command() methods that take an options parameter and replace them with ones that don't Created: 23/Dec/13  Updated: 19/Oct/16  Resolved: 17/Jan/14

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

Type: Task Priority: Major - P3
Reporter: Trisha Gee Assignee: Trisha Gee
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 JAVA-1223 Remove DB.command() overloads that ta... Closed

 Description   

The options flags aren't used fully in DB.command() methods on 2.12, the only thing that's currently used is slaveOK. Since this has been superseded by read preference, the options methods need to be deprecated, and we need to add command methods in 2.12 that have read preference and no options.

Then add new ones and remove deprecated ones in 3.x.



 Comments   
Comment by Githook User [ 17/Jan/14 ]

Author:

{u'username': u'trishagee', u'name': u'Trisha Gee', u'email': u'trishagee@github.com'}

Message: JAVA-1063: Ignoring a test that doesn't pass on Jenkins - this needs fixing.
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/61199e5d37f4e428f5a6c557257ad0b5986906e1

Comment by Githook User [ 17/Jan/14 ]

Author:

{u'username': u'trishagee', u'name': u'Trisha Gee', u'email': u'trishagee@github.com'}

Message: JAVA-1063: excluding the deprecated methods that were deleted from clirr (correctly this time).
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/b12795a6e4d99e31779e03ea1fcf62f373547b7d

Comment by Githook User [ 17/Jan/14 ]

Author:

{u'username': u'trishagee', u'name': u'Trisha Gee', u'email': u'trishagee@github.com'}

Message: JAVA-1063: excluding the deprecated methods that were deleted from clirr.
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/d2db1c8905db5d0f14cce9c526060177ddefa28b

Comment by Githook User [ 17/Jan/14 ]

Author:

{u'username': u'trishagee', u'name': u'Trisha Gee', u'email': u'trishagee@github.com'}

Message: JAVA-1063: Added new command methods from 2.12 to DB and removed the deprecated methods; added the tests from 2.12 to DBTest; removed tests from DBOldTest that are now in DBTest.
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/6809b0f5130811668ea5235a2ece68c6930f42a2

Comment by Githook User [ 16/Jan/14 ]

Author:

{u'username': u'trishagee', u'name': u'Trisha Gee', u'email': u'trishagee@github.com'}

Message: JAVA-1063: Ignored a test that was intermittent.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/7f51c5b6d02f52a3593cba00bb782738ea4be484

Comment by Githook User [ 16/Jan/14 ]

Author:

{u'username': u'trishagee', u'name': u'Trisha Gee', u'email': u'trishagee@github.com'}

Message: JAVA-1063: Added missing command method, command(String, ReadPreference), and corresponding test; renamed readPref to readPreference; improved Javadoc on command methods;
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/57966bbdd22960b2a6026bbe105adecfa0966d29

Comment by Githook User [ 16/Jan/14 ]

Author:

{u'username': u'trishagee', u'name': u'Trisha Gee', u'email': u'trishagee@github.com'}

Message: JAVA-1063: Deprecated command methods that take the options flag; removed duplicated tests.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/da14fee9fe575ad93ac83f0bf26dc3623bf55b9c

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