-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Remove support for MongoDB 3.6 #1375
Conversation
* Remove branching code in the driver based on 3.6 version checks * Remove testing of 3.5 * Clean up tests JAVA-5294
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!
driver-sync/src/test/functional/com/mongodb/client/AbstractExplainTest.java
Show resolved
Hide resolved
@rozza in my final checks before merging I found a few more places that needed updating |
driver-core/src/main/com/mongodb/internal/operation/ServerVersionHelper.java
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/connection/CommandMessage.java
Show resolved
Hide resolved
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.
One question
@@ -41,6 +41,7 @@ import spock.lang.Specification | |||
|
|||
import static com.mongodb.connection.ClusterConnectionMode.MULTIPLE | |||
import static com.mongodb.connection.ClusterConnectionMode.SINGLE | |||
import static com.mongodb.internal.operation.ServerVersionHelper.LATEST_WIRE_VERSION | |||
import static com.mongodb.internal.operation.ServerVersionHelper.THREE_DOT_SIX_WIRE_VERSION |
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.
Is ServerVersionHelper.THREE_DOT_SIX_WIRE_VERSION
needed anymore?
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.
It was just used in a few tests, so I replaced all usages with LATEST_WIRE_VERSION and removed it.
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
JAVA-5294
Let me know if I was too aggressive on the test cleanup. None of it is strictly necessary, but it feels tidier.