[SERVER-85199] Catalog serialization of tenant db views should not depend on featureFlagRequireTenantID Created: 12/Jan/24  Updated: 19/Jan/24

Status: Needs Scheduling
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Sophia Tan Assignee: Backlog - Service Architecture
Resolution: Unresolved Votes: 0
Labels: ntdi_must_have, ntdi_releasability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Service Arch
Operating System: ALL
Participants:
Story Points: 3

 Description   

Catalog of tenant db views are stored in <tenantId><db>.system.views_ . It's a per-tenant collection.
The serialization/deserialization of "_id" field of it is a nss string of the view name. This field should always has tenant prefix as other general catalogs do. 

In the views_for_databse.cpp, there are bugs (eg, here) that didn't follow the above rule and use featureFlagRequireTenantID to decide if tenant prefix is included or not. We should fix it. Otherwise, server cannot reload the view catalog correctly if
feature flag is changed.
 


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