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

The `ExtraErrorInfo` framework doesn't support namespaces

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.9
    • None
    • Internal Code
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2019-03-11

    Description

      The `ExtraErrorInfo` framework doesn't support declaring error codes whose extra info class is under a namespace.

      For example, this error info declaration:

      error_code("AsyncExecutorShutDown", 280, extra="AsyncExecutorShutDownExceptionInfo")
      

      Generates the following declaration in error_codes.h, which fails to compile:

      // ErrorExtraInfo subclasses:
      ...
      class txn::AsyncExecutorShutDownExceptionInfo;
      

      Attachments

        Activity

          People

            mira.carey@mongodb.com Mira Carey
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: