Skip to content

CDRIVER-5956 raise min wire version from 7 to 8 (server 4.2) #1998

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 19 commits into from
Apr 30, 2025

Conversation

kevinAlbs
Copy link
Collaborator

Summary

  • Raise minimum supported wire version from 7 (server 4.0) to 8 (server 4.2).
  • Remove behavior and tests specific to maxWireVersion < 8.

Verified with this patch build.

Removing no-longer-needed cursor implementations is not done in this PR and planned for CDRIVER-4722.

Auth tests using the test server are temporarily skipped until the test server is upgraded. Upgrading is tracked in DEVPROD-9029.

Added killCursors in tests

Some tests that destroy cursors (test_change_stream_resumable_error) are updated to reflect behavior for server > 4.0. Quoting SDAM:

If the old primary server version is 4.2 or newer, the client MUST NOT clear its connection pool for the old primary.

Previously the connection was closed after error. With the connection persisting, destroying the cursor sends killCursors. Tests are updated to expect to send killCursors when destroying a cursor with a non-zero cursor ID and open connection.

@kevinAlbs kevinAlbs requested a review from a team as a code owner April 24, 2025 14:11
Copy link
Contributor

@vector-of-bool vector-of-bool left a comment

Choose a reason for hiding this comment

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

LGTM. Yay for deleting code!

@kevinAlbs kevinAlbs merged commit 24ed3a0 into mongodb:master Apr 30, 2025
39 of 42 checks passed
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