-
Type:
Build Failure
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Go Drivers
-
Not Needed
-
None
-
None
-
None
-
None
-
None
-
None
Name of Failure:
TestFLE2CreateCollection panics on server 7.0.48 / 9.0.8+ and fails all 7.0+ integration tasks
Link to task:
https://spruce.corp.mongodb.com/version/6af3bc9a97d58300076ac0d3
7.0.45 and 9.0.4 accepted the deviating name, and 7.0.48 / 9.0.8 rejected it.
Context of when and why the failure occurred:
The test creates a data collection named coll but passes an
escCollection name that belongs to a different collection:
internal/integration/client_side_encryption_test.go:448
mt.DB.CreateCollection(context.Background(), "coll", options.CreateCollection().SetEncryptedFields(efBSON))
New server patch releases reject the data-collection create because the esc namespace does not match the collection being created. From the mongod log of the failing cse-container-test-rapid task:
"command": "create", "db": "test", "commandArgs": {"create": "coll", "encryptedFields": {"escCollection": "enxcol_.encryptedCollection.esc", ...}}, "error": "Location13049800: Namespace specified in escCollection 'enxcol_.encryptedCollection.esc' is invalid for this queryable encryption collection"
The spec's Create/Drop Collection Helper pseudocode says to use escCollection/ecocCollection if set, while the note directly above says the server rejects deviations. The spec has called this out since DRIVERS-2524 (Apr 2023)