[SERVER-66643] Make pre-image collection multi-tenant Created: 21/May/22 Updated: 29/Oct/23 Resolved: 10/Oct/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.2.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Rishab Joshi (Inactive) | Assignee: | Romans Kasperovics |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | pm-2334-m3 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Sprint: | QE 2022-10-03, QE 2022-10-17 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
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. |
| Comments |
| Comment by Githook User [ 10/Oct/22 ] |
|
Author: {'name': 'Romans Kasperovics', 'email': 'romans.kasperovics@mongodb.com', 'username': 'romanskas'}Message: |