[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:
Depends
depends on SERVER-69541 Update Helpers::findById() to take Na... Closed
Gantt Dependency
has to be done before SERVER-66642 Make changes to the pre-image purging... Closed
has to be done after SERVER-67657 Change mongod commands that override ... Closed
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: SERVER-66643 Create pre-image collections per tenant
Branch: master
https://github.com/mongodb/mongo/commit/033b975f49d8cf42d369c1d3f8800b161df1a672

Generated at Thu Feb 08 06:06:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.