[SERVER-74486] Always include tenant in collection name attributes in error messages Created: 01/Mar/23  Updated: 29/Oct/23  Resolved: 19/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Janna Golden Assignee: Sophia Tan
Resolution: Fixed Votes: 0
Labels: ntdi_must_have
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-74488 Make NamespaceString::toString() private Closed
is depended on by SERVER-74489 Make NamespaceString::toStringWithTen... Closed
is depended on by SERVER-74490 Change NamespaceString::ns() to be pr... Closed
Assigned Teams:
Serverless
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-04-17, Server Serverless 2023-05-01
Participants:
Story Points: 3

 Description   

See design doc for rules.



 Comments   
Comment by Githook User [ 18/Apr/23 ]

Author:

{'name': 'Sophia Tan', 'email': 'sophia_tll@hotmail.com', 'username': 'sophiatll'}

Message: SERVER-74486 Always include tenant in collection name attributes in error messages
Branch: master
https://github.com/mongodb/mongo/commit/274cb477d2a1b64ac81b85e9f1b3172387ce0184

Comment by Sophia Tan [ 23/Mar/23 ]

We also need to create a new function on NamespaceStringOrUUID "toStringForErrorMsg".

Comment by Janna Golden [ 01/Mar/23 ]

When a NamespaceString is included in an error message (uasserts, etc.), the tenantId should always be included as the prefix (for now). In this ticket, we should create a new function on NamespaceString "toStringForErrorMsg", which returns the prefixed name. Then, we should change any error messages which call NamespaceString::toString, NamespaceString::toStringWithTenantId, or NamespaceString::ns directly to call NamespaceString::toStringForErrorMsg instead.

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