[JAVA-5150] Remove deprecated methods for oplogReplay option on find Created: 11/Sep/23  Updated: 05/Dec/23  Resolved: 09/Nov/23

Status: Closed
Project: Java Driver
Component/s: API, Query Operations
Affects Version/s: None
Fix Version/s: 5.0.0

Type: Improvement Priority: Unknown
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:
Documented
Epic Link: Remove deprecated APIs for 5.0 release
Quarter: FY24Q4
Backwards Compatibility: Minor Change
Documentation Changes: Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

           com.mongodb
                DBCursor
                    oplogReplay(boolean)
            com.mongodb.client.model
                DBCollectionFindOptions
                    isOplogReplay()
                    oplogReplay(boolean)
            com.mongodb.reactivestreams.client
                FindPublisher
                    oplogReplay(boolean)
            com.mongodb.client 
                FindIterable 
                    oplogReplay(boolean) 



 Comments   
Comment by Githook User [ 05/Dec/23 ]

Author:

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

Message: Remove deprecated oplogReplay-related methods (#1252)

JAVA-5150
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/1421c6f13fd7f9dc6db0bf88d598c6333c783c5d

Comment by Githook User [ 20/Nov/23 ]

Author:

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

Message: Remove deprecated oplogReplay-related methods (#1252)

JAVA-5150
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/e3aee0d0b8064cc2f5d8494da584e4618c2e1178

Comment by Jeffrey Yemin [ 11/Sep/23 ]

From docs:

Changed in version 4.4: MongoDB deprecates the oplogReplay option to the find command. The optimization enabled by this flag in previous versions now happens automatically for eligible queries on the oplog. Therefore, you don't need to specify this flag. If specified, the server accepts the flag for backwards compatibility, but the flag has no effect.

Given that 4.2 is EOL as of April 2023 I think it's safe to remove these methods.

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