-
Notifications
You must be signed in to change notification settings - Fork 455
CDRIVER-4563 do not create or drop eccCollection
#1232
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
3846611
to
18abd11
Compare
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.
Minor feedback; otherwise, LGTM.
"Driver support of Queryable Encryption is incompatible " | ||
"with server. Upgrade server to use Queryable Encryption."); |
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.
Suggest including both the detected max wire version and the required server version in the error message.
@@ -310,6 +310,8 @@ _mongoc_wire_version_to_server_version (int32_t version) | |||
return "5.3"; | |||
case 17: | |||
return "6.0"; | |||
case 21: |
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.
case 21: | |
case WIRE_VERSION_7_0: |
May be worth considering replacing literals here with their macro equivalents.
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
Co-authored-by: vector-of-bool <[email protected]>
create_encField_state_collection ( | ||
database, encryptedFields, name, "ecoc", error); | ||
if (!state_collections_ok) { | ||
// Failed to create one or more state collections | ||
goto fail; | ||
} | ||
|
||
// Check the wire version to ensure server is 7.0.0 or newer. |
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.
This wire version check should be performed before creating the QEv2 state collections. I opened CDRIVER-4653 to track this.
Summary
eccCollection
.fle2v2
spec tests.Verified with this patch build.
Background & Motivation
See DRIVERS-2524 for additional background behind these changes.