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

Allow fail points to be defined in IDL

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Service Arch

    Description

      Our fail points take in a schema-less BSON data object (see here). This means that to understand how to specify a fail point, both SERVER and DRIVERS engineers have no choice but to read the code where the fail point is used. We can leverage IDL to optionally enforce a strict schema on fail points instead.

      fail_points:
          hangBeforeFooBar:
              description: Block while enabled in the fooest bar
          failCommandLite:
              description: Fail the given commands
              fields:
                  errorCode:
                      description: The code to use for the failure
                      type: int
                  failCommands:
                      description: The command names to fail
                      type: array<string>
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: