Skip to content

Remove support for pre-3.6 server releases #988

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 13, 2022
Merged

Conversation

jyemin
Copy link
Collaborator

@jyemin jyemin commented Aug 16, 2022

JAVA-4295

I divided this up into a commit for each release that we're dropping. So if we ever need to roll back, it's easy to do it for a single release.

I suggest enabling Hide Whitespace Only Changes in the UI when you review, as many of the lines changed only whitespace based on the removal of conditional statements.

@jyemin jyemin self-assigned this Aug 16, 2022
@jyemin jyemin requested review from rozza and katcharov August 16, 2022 15:41
@katcharov
Copy link
Collaborator

@jyemin Just curious, what was the process for removing support? Were you able to find all locations by following version checks from some single location? (For example, I see that you have removed methods like validateReadConcern, but I did not immediately see why.)

@jyemin
Copy link
Collaborator Author

jyemin commented Aug 16, 2022

Yes, just following version checks and then removing anything unused as a result of removing the version check and any code branches that were no longer needed.

Copy link
Collaborator

@katcharov katcharov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Nice to see the ~7k lines removed.

Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Amazing how much code can be removed! 🥳

* Remove query-based support for list collections and indexes
* Remove support for MONGDOB-CR as the default authenticator

JAVA-4296
* Use killCursors command in cursor cleaner instead of OP_KILL_CURSORS
* Remove wire version checks for 3.0
* Remove subsequent dead code

JAVA-4297
* Remove wire version check for invalid use of collation
* Remove wire version check for invalid use of hint
* Remove wire version check for missing user name for X509 authentication

JAVA-4298
* Remove wire version check for including cursor field in aggregate command
* Remove wire version check for retryable reads and writes
* Remove wire version check for use OP_INSERT/UPDATE/DELETE for unacknowledged writes
* Remove dead code that supported OP_INSERT/UPDATE/DELETE
* Simplify CommandMessage to assume OP_QUERY is not used with payloads
 (because it's not only used to send the isMaster command)

JAVA-4299
@jyemin jyemin merged commit b602a79 into mongodb:master Sep 13, 2022
@jyemin jyemin deleted the j4295 branch September 13, 2022 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants