-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Fully Compatible
-
QE 2022-10-03, QE 2022-10-17
This ticket is about making pre-images collection multi-tenant. A pre-images collection was introduced in the project PM-1944 and had no multi-tenancy support. As part of this ticket, we will introduce multi-tenancy to it.
For this, we need to perform inserts and lookups on the pre-image collection for the provided tenant. There can be several pre-images collected in a node.
The tenant can be retrieved for the namespace object, ie. ns.dbName().tenantId().
Then, a pre-images namespace can be created using the function NamespaceString::makePreImageCollectionNSS(<tenantId>).
A tenant Id must be resolved before passing to any function, this can be done by calling the function change_stream_serverless_helpers::resolveTenantId().
We should also extend the JS test - jstests/serverless/change_streams/multitenant_read_from_change_collection.js for the pre-images collection.
- depends on
-
SERVER-69541 Update Helpers::findById() to take NamespaceString object
- Closed
- has to be done after
-
SERVER-67657 Change mongod commands that override CommandInvocation to use tenantId in request
- Closed
- has to be done before
-
SERVER-66642 Make changes to the pre-image purging job to account for multi-tenancy
- Closed