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

Failpoints should be able to be configured to set errno to a given value when triggered

    • Service Arch
    • Fully Compatible

      Failpoints are often injected at system call sites (send/recv). Typically the error-occurred branch of the nearby code for system calls will examine 'errno' and respond to that value in some way (often by capturing it in an exception). If, however, the error-occurred branch is taken because the failpoint is enabled, rather than because the syscall failed, then the value of errno is indeterminate, and therefore the path through the error handling logic cannot be controlled.

      The failpoints mechanism should offer a facility to associate an errno value with an activated failpoint, so that when the failpoint triggers errno is set to the stored value. This would make it possible to control the behavior of the error-occurred branch when the failpoint is active.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: