Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-79341

Make CollectionUUIDMismatchInfo serialize/deserialize including tenant id

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Server Serverless 2023-08-07
    • 2

      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.

            Assignee:
            sophia.tan@mongodb.com Sophia Tan
            Reporter:
            sophia.tan@mongodb.com Sophia Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: