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

Munge Egress Responses into a ErrorExtraInfo subclass

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Service Arch
    • Fully Compatible
    • Service arch 2020-06-29, Service arch 2020-07-13, Service Arch 2020-08-10, Service Arch 2020-08-24, Service arch 2020-09-07, Service arch 2020-09-21

    Description

      In situations where a response from a mongod to a mongod or a mongos has a “code” field, we should pass the response through a helper function that munges it into ErrorExtraInfo and uses that ErrorExtraInfo as part of throwing a DBException. We can then use that type information to guide it through a different path in service infrastructure. In the immediate, it is most likely sufficient to encode the entire Egress Response BSONObj into the ErrorExtraInfo via functions analog to getStatusFromCommandResult().

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: