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

Guard return path from ServiceEntryPoint to prevent undefined behavior

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • Fully Compatible
    • Service Arch 2020-08-10, Service Arch 2020-08-24, Service arch 2020-09-07, Service arch 2020-09-21

      There are layers upon layers of try-catch-throw in ServiceEntryPoint. The function handleRequest() is likely the place where we should not allow exceptions to be thrown. We need some DbResponse-returning noexcept function to be the return path from a ServiceEntryPoint to a ServiceExecutor. Once we have that, we can be confident that the client will receive a response in any situation where the process is in a workable state.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: