[SERVER-71030] Make CursorResponse serialize / deserialize the namespace properly Created: 02/Nov/22  Updated: 29/Oct/23  Resolved: 20/Dec/22

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

Type: Task Priority: Major - P3
Reporter: Mathis Bessa Assignee: Hugh Tong (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-70067 Have DBClientCursor to include tenant... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2022-12-12, Server Serverless 2022-12-26
Participants:
Story Points: 2

 Description   

We currently do not serialize properly the namespace for the CursorResponse object.

We need to make use of the NamespaceStringUtil::serialize everywhere we parse the NamespaceString in order not to drop the tenantId prefix from a namespace.

There is the cursor_response_test.cpp file that can be used to test the changes. We can look at the roundTripThroughCursorResponseBuilderWithPartialResultsReturned for inspiration on how to test this.



 Comments   
Comment by Githook User [ 20/Dec/22 ]

Author:

{'name': 'Hugh Tong', 'email': 'hugh.tong@mongodb.com', 'username': 'cortrain'}

Message: SERVER-71030 Modify CursorResponse to serialize/deserialize NamespaceString with tenantId
Branch: master
https://github.com/mongodb/mongo/commit/20770047f9ac49ff8d344bcb10258a9010bcf74b

Comment by Hugh Tong (Inactive) [ 09/Dec/22 ]

Testing has encountered dependencies between SERVER-71030 and SERVER-70067, so the scope has expanded to encompass both tickets.  SERVER-70067 will be absorbed into this ticket.

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