[SERVER-79341] Make CollectionUUIDMismatchInfo serialize/deserialize including tenant id Created: 25/Jul/23  Updated: 29/Oct/23  Resolved: 27/Jul/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: Sophia Tan 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-77537 Make DatabaseName::db() private Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-08-07
Participants:
Story Points: 2

 Description   

Today, the  `CollectionUUIDMismatchInfo::deserialize`  function does not create a db name with correct tenant id as it uses boost::none as tenant id. Similar, the `serialize` function drops off the tenant. 

In this ticket, we should make the CollectionUUIDMismatchInfo object can be serialized/deserialized correctly with tenant id in the output. 

  • for serialization, include the tenant prefix in db name as we did for other error messages.
  • for deserialization, parse the tenant id from prefix of the db string and put it into the DatabaseName object.

Also, make the jstest override which checks tenant aware responses be able to work with CollectionUUIDMismatchInfo error response.



 Comments   
Comment by Githook User [ 27/Jul/23 ]

Author:

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

Message: SERVER-79341 Make CollectionUUIDMismatchInfo serialize/deserialize including tenant id
Branch: master
https://github.com/mongodb/mongo/commit/6c6c78a300b536471140f5f6af0afe15810a62eb

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