-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Conversation
@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 |
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. |
There was a problem hiding this 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.
There was a problem hiding this 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! 🥳
driver-core/src/main/com/mongodb/internal/connection/CommandMessage.java
Outdated
Show resolved
Hide resolved
* 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
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.