Skip to content

CSHARP-4319: FLE - maxWireVersion should run on Mongo Server 4.0.x. #878

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 3 commits into from
Sep 21, 2022

Conversation

DmitryLukyanov
Copy link
Contributor

No description provided.

@@ -323,7 +323,7 @@ private static int GetMaxWireVersion()
using (var session = StartSession())
using (var binding = CreateReadBinding(session))
{
var command = new BsonDocument("hello", 1);
var command = new BsonDocument(OppressiveLanguageConstants.LegacyHelloCommandName, 1);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

might be called for servers that support only legacy hello

Copy link
Contributor

Choose a reason for hiding this comment

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

Using legacy hello will fail when running tests with apiStrict enabled. Note that hello was backported to earlier versions and is supported on 3.6.21, 4.0.21, 4.2.10, 4.4.2, and 5.0+. (See https://jira.mongodb.org/browse/SERVER-49986 for details.) While hello will fail against earlier patch builds of the server, we only test against latest patch of each version in Evergreen. Thus I don't think we need to make this change.

Copy link
Contributor Author

@DmitryLukyanov DmitryLukyanov Sep 16, 2022

Choose a reason for hiding this comment

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

hmm, it's strange, I changed this because on server 40 that I launched locally, hello command has failed.. I don't think that I use too old version, but I will try to download newest 40 server version and check again

Copy link
Contributor Author

@DmitryLukyanov DmitryLukyanov Sep 16, 2022

Choose a reason for hiding this comment

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

you're correct. It looks like my local version for 40 server was too old, reverted

Copy link
Contributor

@JamesKovacs JamesKovacs left a comment

Choose a reason for hiding this comment

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

I don't think we should change hello to legacy hello when determining MaxWireVersion in our test suite.

@@ -323,7 +323,7 @@ private static int GetMaxWireVersion()
using (var session = StartSession())
using (var binding = CreateReadBinding(session))
{
var command = new BsonDocument("hello", 1);
var command = new BsonDocument(OppressiveLanguageConstants.LegacyHelloCommandName, 1);
Copy link
Contributor

Choose a reason for hiding this comment

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

Using legacy hello will fail when running tests with apiStrict enabled. Note that hello was backported to earlier versions and is supported on 3.6.21, 4.0.21, 4.2.10, 4.4.2, and 5.0+. (See https://jira.mongodb.org/browse/SERVER-49986 for details.) While hello will fail against earlier patch builds of the server, we only test against latest patch of each version in Evergreen. Thus I don't think we need to make this change.

Copy link
Contributor

@JamesKovacs JamesKovacs left a comment

Choose a reason for hiding this comment

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

LGTM

@DmitryLukyanov DmitryLukyanov merged commit bf18fa9 into mongodb:master Sep 21, 2022
dnickless pushed a commit to dnickless/mongo-csharp-driver that referenced this pull request Aug 24, 2023
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.

2 participants