-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: 8.3.3, 8.0.25, 7.0.36
-
Component/s: None
-
None
-
Server Security
-
🟥 DDL
-
None
-
None
-
None
-
None
-
None
-
None
The cleanup and compact operations on queryable encryption collections are internally renaming and then recreating the ECOC collection.
Since the ECOC collection lock is released at the end of the rename and reacquired at the beginning of the create, in presence of concurrent user insert/update it is likely for the collection to be implicitly created: writes would serialize on the collection lock behind the rename and happen right when it is released, sneaking in before the create.
That can be problematic in sharded clusters because the QE main collection (not the state collections) may not fully reside on the db primary shard because any user write is translated into an internal transaction and the implicit creation of the ECOC collection may fail because not supported in distributed transactions.
- is related to
-
SERVER-126384 QE cleanup/compact racing with user writes might result in ECOC collection missing the clustered index
-
- In Code Review
-